From 8f169574c7c1c6bec7c02fc7de3f034cacc8c141 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Tue, 24 Jan 2023 11:02:54 -0500 Subject: [PATCH] [test262] Set language as typescript --- compiler/forget/scripts/test262-preprocessor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.