From 5f2f76cbcd27eb1bd2d0cb68965046183f71d98b Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 26 Apr 2023 14:12:18 -0400 Subject: [PATCH] Fix test262 We [renamed the export](https://github.com/facebook/react-forget/blob/6f001f54b036d6f427c8d4c1c04ace3ab1998a4d/forget/src/Babel/RunReactForgetBabelPlugin.ts#L22) of runReactForgetBabelPlugin so the test262 preprocessor was erroring --- compiler/forget/scripts/test262-preprocessor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/forget/scripts/test262-preprocessor.js b/compiler/forget/scripts/test262-preprocessor.js index 7212044a7a..c4b040856d 100644 --- a/compiler/forget/scripts/test262-preprocessor.js +++ b/compiler/forget/scripts/test262-preprocessor.js @@ -5,8 +5,9 @@ * LICENSE file in the root directory of this source tree. */ -const runReactForgetBabelPlugin = - require("../dist/Babel/RunReactForgetBabelPlugin").default; +const { + runReactForgetBabelPlugin, +} = require("../dist/Babel/RunReactForgetBabelPlugin"); // Preprocessor that runs Forget on the test262 test prior to execution. Compilation errors short // circuit test execution and report an error immediately.