From f5d00ab0e61f156aa6a4f2574bb42d9070a4037e Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Tue, 12 Jul 2022 15:23:32 +0800 Subject: [PATCH] fix test --- jest.config.mjs | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jest.config.mjs b/jest.config.mjs index d9fc678189..213f08789f 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -52,6 +52,9 @@ export default { }, target: 'es2020', }, + module: { + ignoreDynamic: true, + }, }, ], }, diff --git a/package.json b/package.json index eb21694411..b1d3fb746e 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "lint:spelling": "cspell \"**\" --no-progress", "lint:style": "stylelint \"**/*.css\"", "lerna": "lerna", - "test": "jest", + "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", "test:build:website": "./admin/scripts/test-release.sh", "watch": "yarn lerna run --parallel watch", "clear": "(yarn workspace website clear || echo 'Failure while running docusaurus clear') && yarn lerna exec --ignore docusaurus yarn rimraf lib",