From ac527ff49b1fc19e18d4119d13bb78107a74cd43 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Tue, 5 Sep 2023 21:21:46 +0800 Subject: [PATCH] fix(test): Set NODE_OPTIONS=--max_old_space_size=4096 for jest --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b37bd850c..78902916c 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ "start": "npm run dev", "postpublish": "npm run sync:other-npm", "sync:other-npm": "node -e 'require(\"./scripts/sync-cnpm-and-tnpm\")()'", - "test": "cross-env TZ=UTC jest", - "test:coverage": "cross-env TZ=UTC TEST_LOG=none jest --coverage", - "test:update": "cross-env TZ=UTC jest --updateSnapshot", + "test": "NODE_OPTIONS=--max_old_space_size=4096 cross-env TZ=UTC jest", + "test:coverage": "NODE_OPTIONS=--max_old_space_size=4096 cross-env TZ=UTC TEST_LOG=none jest --coverage", + "test:update": "NODE_OPTIONS=--max_old_space_size=4096 cross-env TZ=UTC jest --updateSnapshot", "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint --cache --ext .js,.jsx,.ts,.tsx --fix --format=pretty", "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",