@@ -39,7 +39,7 @@ test.group('Make Preloaded File', (group) => {
39
39
const rcContents = readJSONSync ( join ( fs . basePath , '.adonisrc.json' ) )
40
40
const app = new Application ( fs . basePath , 'test' , rcContents )
41
41
42
- const preloadFile = new PreloadFile ( app , new Kernel ( app ) )
42
+ const preloadFile = new PreloadFile ( app , new Kernel ( app ) . mockConsoleOutput ( ) )
43
43
preloadFile . name = 'viewGlobals'
44
44
preloadFile . environment = 'console,web' as any
45
45
await preloadFile . run ( )
@@ -72,7 +72,7 @@ test.group('Make Preloaded File', (group) => {
72
72
const rcContents = readJSONSync ( join ( fs . basePath , '.adonisrc.json' ) )
73
73
const app = new Application ( fs . basePath , 'test' , rcContents )
74
74
75
- const preloadFile = new PreloadFile ( app , new Kernel ( app ) )
75
+ const preloadFile = new PreloadFile ( app , new Kernel ( app ) . mockConsoleOutput ( ) )
76
76
preloadFile . name = 'viewGlobals'
77
77
preloadFile . environment = [ 'console' , 'web' ]
78
78
await preloadFile . run ( )
@@ -99,7 +99,7 @@ test.group('Make Preloaded File', (group) => {
99
99
const rcContents = readJSONSync ( join ( fs . basePath , '.adonisrc.json' ) )
100
100
const app = new Application ( fs . basePath , 'test' , rcContents )
101
101
102
- const preloadFile = new PreloadFile ( app , new Kernel ( app ) )
102
+ const preloadFile = new PreloadFile ( app , new Kernel ( app ) . mockConsoleOutput ( ) )
103
103
preloadFile . name = 'repl'
104
104
preloadFile . environment = [ 'repl' ]
105
105
await preloadFile . run ( )
@@ -125,7 +125,7 @@ test.group('Make Preloaded File', (group) => {
125
125
const rcContents = readJSONSync ( join ( fs . basePath , '.adonisrc.json' ) )
126
126
const app = new Application ( fs . basePath , 'test' , rcContents )
127
127
128
- const preloadFile = new PreloadFile ( app , new Kernel ( app ) )
128
+ const preloadFile = new PreloadFile ( app , new Kernel ( app ) . mockConsoleOutput ( ) )
129
129
preloadFile . prompt . on ( 'prompt' , ( question ) => {
130
130
question . select ( 1 )
131
131
} )
0 commit comments