mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Node options - up memory for unit tests
Running into memory heap error when running unit tests in cli
This commit is contained in:
parent
5bc43fdedf
commit
7613a4ebc2
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue