File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 13
13
"postbuild" : " run-s bundle" ,
14
14
"bundle" : " node ./scripts/rollup-script.js" ,
15
15
"test" : " run-s test:ava test:puppeteer:basic test:puppeteer:webpack" ,
16
- "test:ava" : " cross-env TS_NODE_FILES=true ava" ,
16
+ "test:ava" : " cross-env TS_NODE_FILES=true ./scripts/ ava-script.js " ,
17
17
"test:puppeteer:basic" : " puppet-run --plugin=mocha --bundle=./test/workers/:/workers/ --serve=./bundle/worker.js:/worker.js ./test/*.chromium*.ts" ,
18
18
"test:puppeteer:webpack" : " puppet-run --serve ./test/webpack/dist/app.web/0.worker.js --serve ./test/webpack/dist/app.web/1.worker.js --plugin=mocha ./test/webpack/webpack.chromium.mocha.ts" ,
19
19
"posttest" : " tslint --project ." ,
Original file line number Diff line number Diff line change
1
+ const child_process = require ( 'child_process' ) ;
2
+ const path = require ( 'path' )
3
+
4
+ if ( parseFloat ( process . version . match ( / ^ v ( \d + \. \d + ) / ) [ 1 ] ) < 10 ) {
5
+ child_process . spawnSync ( `npm install ava@^2` , { stdio : 'inherit' } )
6
+ child_process . spawnSync ( `node ${ path . resolve ( './node_modules/ava-old/cli.js' ) } ` , { stdio : 'inherit' } )
7
+ } else {
8
+ child_process . spawnSync ( `node ${ path . resolve ( './node_modules/ava/cli.js' ) } ` , { stdio : 'inherit' } )
9
+ }
You can’t perform that action at this time.
0 commit comments