diff --git a/compiler/forget/scripts/test262-preprocessor.js b/compiler/forget/scripts/test262-preprocessor.js index 86f4b0007b..cbbb19c1ae 100644 --- a/compiler/forget/scripts/test262-preprocessor.js +++ b/compiler/forget/scripts/test262-preprocessor.js @@ -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.