This repository was archived by the owner on May 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
packages/atlauncher-scripts Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff 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
109107You 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.
113111You can also provide a ` --coverage ` switch to do coverage reporting.
114112
115113You 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.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const args = process.argv.slice(2);
77let watch = false ;
88let debug = false ;
99let coverage = false ;
10+ let forceExit = false ;
1011let noConcurrency = false ;
1112
1213if ( 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
You can’t perform that action at this time.
0 commit comments