File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const { spawn } = require ( 'child_process' ) ;
4+ const devserver = require ( './dev-server' ) ;
5+
6+ const MOCHA_BIN = './node_modules/.bin/mocha' ;
7+ const MULTITAB_TESTS = 'tests/multitab' ;
8+ const TIMEOUT = '10000'
9+
10+ devserver . start ( ( ) => {
11+ let argv = [ '-t' , TIMEOUT , MULTITAB_TESTS ] ;
12+ let mocha = spawn ( MOCHA_BIN , argv , { stdio : 'inherit' } ) ;
13+ mocha . on ( 'close' , ( status ) => process . exit ( status ) ) ;
14+ } ) ;
Original file line number Diff line number Diff line change 1313 "test-component" : " mocha --exit tests/component # --exit for #8839" ,
1414 "test-fuzzy" : " TYPE=fuzzy npm run test" ,
1515 "test-browser" : " node ./bin/test-browser.js" ,
16+ "test-multitab" : " node ./bin/test-multitab.js" ,
1617 "test-memleak" : " mocha -gc tests/memleak" ,
1718 "eslint" : " eslint --cache bin/ packages/node_modules/**/src tests/" ,
1819 "dev" : " ./bin/run-dev.sh" ,
You can’t perform that action at this time.
0 commit comments