File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const optimist = require('optimist')
1717 . describe ( 'build' , 'run with build output (out-build)' ) . boolean ( 'build' )
1818 . describe ( 'coverage' , 'generate coverage report' ) . boolean ( 'coverage' )
1919 . describe ( 'debug' , 'open dev tools, keep window open, reuse app data' ) . string ( 'debug' )
20- . describe ( 'reporter' , 'the mocha reporter' ) . string ( 'reporter' ) . default ( 'reporter' , 'spec' )
20+ . describe ( 'reporter' , 'the mocha reporter' ) . string ( 'reporter' ) . default ( 'reporter' , process . platform === 'win32' ? 'dot' : 'spec' )
2121 . describe ( 'help' , 'show the help' ) . alias ( 'help' , 'h' ) ;
2222
2323const argv = optimist . argv ;
@@ -113,7 +113,7 @@ app.on('ready', () => {
113113 Reporter = require ( reporterPath ) ;
114114 } catch ( err ) {
115115 console . warn ( `could not load reporter: ${ argv . reporter } ` ) ;
116- Reporter = mocha . reporters . Spec ;
116+ Reporter = process . platform === 'win32' ? mocha . reporters . Dot : mocha . reporters . Spec ;
117117 }
118118
119119 const runner = new IPCRunner ( ) ;
You can’t perform that action at this time.
0 commit comments