File tree Expand file tree Collapse file tree 2 files changed +14
-25
lines changed Expand file tree Collapse file tree 2 files changed +14
-25
lines changed Original file line number Diff line number Diff line change 28
28
"setupFiles" : [
29
29
" <rootDir>/scripts/testSetup.js"
30
30
],
31
- "testPathIgnorePatterns" : [
32
- " /template/" ,
33
- " /packages/test/" ,
34
- " /temp/" ,
35
- " /scripts/" ,
36
- " .*.helper.js"
37
- ],
38
- "testMatch" : [" **/*.spec.js" ]
31
+ "testMatch" : [
32
+ " **/*.spec.js"
33
+ ]
39
34
},
40
35
"lint-staged" : {
41
36
"*.{js,vue}" : [
63
58
"lerna" : " ^2.8.0" ,
64
59
"lint-staged" : " ^7.2.0" ,
65
60
"memfs" : " ^2.8.0" ,
61
+ "minimist" : " ^1.2.0" ,
66
62
"puppeteer" : " ^1.0.0" ,
67
63
"request" : " ^2.83.0" ,
68
64
"request-promise-native" : " ^1.0.5" ,
Original file line number Diff line number Diff line change 1
- const execa = require ( 'execa' )
2
1
const minimist = require ( 'minimist' )
3
-
4
2
const rawArgs = process . argv . slice ( 2 )
5
3
const args = minimist ( rawArgs )
6
4
@@ -12,18 +10,13 @@ if (args.p) {
12
10
rawArgs . splice ( i , 2 )
13
11
}
14
12
15
- ; ( async ( ) => {
16
- const jestArgs = [
17
- '--env' , 'node' ,
18
- '--runInBand' ,
19
- ...rawArgs ,
20
- ...( regex ? [ regex ] : [ ] )
21
- ]
22
- console . log ( `running jest with args: ${ jestArgs . join ( ' ' ) } ` )
23
- await execa ( 'jest' , jestArgs , {
24
- stdio : 'inherit'
25
- } )
26
- } ) ( ) . catch ( err => {
27
- err
28
- process . exit ( 1 )
29
- } )
13
+ const jestArgs = [
14
+ '--env' , 'node' ,
15
+ '--runInBand' ,
16
+ ...rawArgs ,
17
+ ...( regex ? [ regex ] : [ ] )
18
+ ]
19
+
20
+ console . log ( `running jest with args: ${ jestArgs . join ( ' ' ) } ` )
21
+
22
+ require ( 'jest' ) . run ( jestArgs )
You can’t perform that action at this time.
0 commit comments