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

Commit ae985db

Browse files
feat(atlauncher-scripts): add in ability to forceExit Jest
1 parent ba73d41 commit ae985db

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

packages/atlauncher-scripts/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,11 @@ You can optionally provide an array of extra folders/files to clean in your `pac
6161

6262
```json
6363
{
64-
"config": {
65-
"atlauncher": {
66-
"extraToClean": [
67-
"cleanMeUp"
68-
]
64+
"config": {
65+
"atlauncher": {
66+
"extraToClean": ["cleanMeUp"]
67+
}
6968
}
70-
}
7169
}
7270
```
7371

@@ -104,7 +102,7 @@ Lints the `package.json` file.
104102

105103
### test
106104

107-
`atlauncher-scripts test [--watch] [--debug] [--coverage]`
105+
`atlauncher-scripts test [--watch] [--debug] [--coverage] [--noConcurrency] [--forceExit]`
108106

109107
You can provide a `--watch` switch to allow watching of your tests.
110108

@@ -113,3 +111,5 @@ You can also provide a `--debug` switch to allow turning on debug mode.
113111
You can also provide a `--coverage` switch to do coverage reporting.
114112

115113
You can also provide a `--noConcurrency` switch to not run tests in parallel (useful for CI).
114+
115+
You can also provide a `--forceExit` switch to force exit the process when Jest finishes running.

packages/atlauncher-scripts/scripts/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const args = process.argv.slice(2);
77
let watch = false;
88
let debug = false;
99
let coverage = false;
10+
let forceExit = false;
1011
let noConcurrency = false;
1112

1213
if (args.length) {
@@ -26,6 +27,10 @@ if (args.length) {
2627
if (arg === '--noConcurrency') {
2728
noConcurrency = true;
2829
}
30+
31+
if (arg === '--forceExit') {
32+
forceExit = true;
33+
}
2934
});
3035
}
3136

@@ -37,6 +42,7 @@ const processArguments = [
3742
watch && '--watch',
3843
debug && '--debug',
3944
coverage && '--coverage',
45+
forceExit && '--forceExit',
4046
noConcurrency && '--runInBand',
4147
];
4248

0 commit comments

Comments
 (0)