Node options - up memory for unit tests

Running into memory heap error when running unit tests in cli
This commit is contained in:
Becca 2022-02-03 07:09:42 -05:00
parent 5bc43fdedf
commit 7613a4ebc2

View file

@ -8,7 +8,7 @@
"cli": "ts-node --require ./app/test/globals.ts --require ./app/src/cli/dev-commands-global.ts app/src/cli/main.ts",
"check:eslint": "tsc -P eslint-rules/",
"test:eslint": "jest eslint-rules/tests/*.test.js",
"test:unit": "cross-env ELECTRON_RUN_AS_NODE=1 ./node_modules/.bin/electron ./node_modules/jest/bin/jest --detectOpenHandles --silent --testLocationInResults --config ./app/jest.unit.config.js",
"test:unit": "cross-env ELECTRON_RUN_AS_NODE=1 NODE_OPTIONS='--max_old_space_size=4096' ./node_modules/.bin/electron ./node_modules/jest/bin/jest --detectOpenHandles --silent --testLocationInResults --config ./app/jest.unit.config.js",
"test:unit:cov": "yarn test:unit --coverage",
"test:script": "jest --silent --config ./script/jest.config.js",
"test:script:cov": "yarn test:script --coverage",