File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { filesystem } from "gluegun"
2
2
import * as tempy from "tempy"
3
3
import { runIgnite , runError , run } from "../_test-helpers"
4
+ import { stripANSI } from "../../src/tools/strip-ansi"
4
5
5
6
const APP_NAME = "Foo"
6
7
const originalDir = process . cwd ( )
@@ -31,10 +32,15 @@ describe("ignite new", () => {
31
32
beforeAll ( async ( ) => {
32
33
tempDir = tempy . directory ( { prefix : "ignite-" } )
33
34
34
- result = await runIgnite ( `new ${ APP_NAME } --debug --packager=bun --yes` , {
35
- pre : `cd ${ tempDir } ` ,
36
- post : `cd ${ originalDir } ` ,
37
- } )
35
+ try {
36
+ result = await runIgnite ( `new ${ APP_NAME } --debug --packager=bun --yes` , {
37
+ pre : `cd ${ tempDir } ` ,
38
+ post : `cd ${ originalDir } ` ,
39
+ } )
40
+ } catch ( e ) {
41
+ console . log ( "Ignite new output: \n" , stripANSI ( e . stdout ) )
42
+ throw new Error ( "Ignite new failed" )
43
+ }
38
44
39
45
appPath = filesystem . path ( tempDir , APP_NAME )
40
46
} )
You can’t perform that action at this time.
0 commit comments