@@ -2,7 +2,7 @@ const fixtureSetup = require('../fixtures/app-test-setup.js')
22const { resolve } = require ( 'path' )
33const { existsSync, readFileSync, writeFileSync } = require ( 'fs' )
44const { move } = require ( 'fs-extra' )
5- const cli = require ( '~/index .js' )
5+ const cli = require ( '~/main .js' )
66
77const currentDirName = __dirname
88
@@ -23,7 +23,11 @@ describe('[CLI] cli.js template', () => {
2323 await move ( outPath , cacheOutPath )
2424 }
2525
26- cli . run ( [ 'init' , '--directory' , process . cwd ( ) , '--force' , '--tauri-path' , resolve ( currentDirName , '../../../../../..' ) , '--ci' ] )
26+ await cli . run ( [ 'init' , '--directory' , process . cwd ( ) , '--force' , '--tauri-path' , resolve ( currentDirName , '../../../../../..' ) , '--ci' ] )
27+ . catch ( err => {
28+ console . error ( err )
29+ throw err
30+ } )
2731
2832 if ( outExists ) {
2933 await move ( cacheOutPath , outPath )
@@ -35,7 +39,10 @@ describe('[CLI] cli.js template', () => {
3539 const manifestFile = readFileSync ( manifestPath ) . toString ( )
3640 writeFileSync ( manifestPath , `workspace = { }\n${ manifestFile } ` )
3741
38- cli . run ( [ 'build' , '--verbose' ] )
42+ await cli . run ( [ 'build' , '--verbose' ] ) . catch ( err => {
43+ console . error ( err )
44+ throw err
45+ } )
3946 process . chdir ( cwd )
4047 } )
4148} )
0 commit comments