rename jest.config.js to jest.unit.config.js to differentiate from integration tests

This commit is contained in:
Brendan Forster 2019-01-02 13:09:47 -04:00
parent 2b4a258167
commit 60e3927160
3 changed files with 3 additions and 3 deletions

4
.vscode/launch.json vendored
View file

@ -10,7 +10,7 @@
"args": [
"--silent",
"--config",
"${workspaceFolder}/app/jest.config.js"
"${workspaceFolder}/app/jest.unit.config.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
@ -30,7 +30,7 @@
"args": [
"--silent",
"--config",
"${workspaceFolder}/app/jest.config.js",
"${workspaceFolder}/app/jest.unit.config.js",
"${relativeFile}"
],
"console": "integratedTerminal",

View file

@ -7,7 +7,7 @@
"scripts": {
"cli": "ts-node --require ./app/test/globals.ts --require ./app/src/cli/dev-commands-global.ts app/src/cli/main.ts",
"test:integration": "cross-env TEST_ENV=1 ELECTRON_NO_ATTACH_CONSOLE=1 xvfb-maybe --auto-servernum -- jest --config ./app/jest.integration.config.js",
"test:unit": "cross-env ELECTRON_RUN_AS_NODE=1 ./node_modules/.bin/electron ./node_modules/jest/bin/jest --detectOpenHandles --silent --config ./app/jest.config.js",
"test:unit": "cross-env ELECTRON_RUN_AS_NODE=1 ./node_modules/.bin/electron ./node_modules/jest/bin/jest --detectOpenHandles --silent --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",