Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 2d88c6a

Browse files
feat(atlauncher-scripts): add in jest config
1 parent 673cfc7 commit 2d88c6a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"bail": true,
3+
"testEnvironment": "node",
4+
"collectCoverageFrom": [
5+
"src/**/*.js"
6+
],
7+
"coverageDirectory": "coverage",
8+
"coverageThreshold": {
9+
"global": {
10+
"branches": 50,
11+
"functions": 50,
12+
"lines": 50,
13+
"statements": 50
14+
}
15+
},
16+
"testMatch": [
17+
"**/?(*.)(spec).js"
18+
]
19+
}

packages/atlauncher-scripts/scripts/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ process.on('unhandledRejection', (err) => {
4141

4242
const processArguments = [];
4343

44-
const command = [utils.getNodeModulesBinPath('jest')];
44+
const command = [utils.getNodeModulesBinPath('jest'), '--config', utils.getRootFile('.jestrc')];
4545

4646
if (watch) {
4747
command.push('--watch');

0 commit comments

Comments
 (0)