mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[test262] Set language as typescript
This commit is contained in:
@@ -5,7 +5,11 @@ const runReactForgetBabelPlugin =
|
||||
// circuit test execution and report an error immediately.
|
||||
module.exports = (test) => {
|
||||
try {
|
||||
test.contents = runReactForgetBabelPlugin(test.contents, test.file).code;
|
||||
test.contents = runReactForgetBabelPlugin(
|
||||
test.contents,
|
||||
test.file,
|
||||
"typescript"
|
||||
).code;
|
||||
} catch (error) {
|
||||
// We use the `stderr` output to group errors so we can count them, so we need to dedupe errors
|
||||
// that are the same but differ slightly.
|
||||
|
||||
Reference in New Issue
Block a user