@@ -73,9 +73,8 @@ function testBuildCommand<T extends Record<string, any>>(
7373 assertDirectories ( true ) ;
7474 } ) ;
7575
76- test ( 'Command execution that returns warnings' , async ( ) => {
76+ test . skipIf ( ! ! process . env . CI ) ( 'Command execution that returns warnings' , async ( ) => {
7777 mockResolvedValueOnce ( mockedBuilder , 'warn' ) ;
78- expect ( process . env . CI ) . toBeUndefined ( ) ;
7978 await expect ( runCommand ( ...cmdArgs ) ) . commandSuccess ( ) ;
8079 expect ( builder ) . toHaveBeenCalledTimes ( 1 ) ;
8180 assertDirectories ( true ) ;
@@ -132,13 +131,12 @@ function testBuildCommand<T extends Record<string, any>>(
132131 assertDirectories ( false ) ;
133132 } ) ;
134133
135- test ( 'Bundle command with linting warnings' , async ( ) => {
134+ test . skipIf ( ! ! process . env . CI ) ( 'Bundle command with linting warnings' , async ( ) => {
136135 mockedRunEslint . mockResolvedValueOnce ( {
137136 severity : 'warn' ,
138137 formatted : '' ,
139138 input : { } as any
140139 } ) ;
141- expect ( process . env . CI ) . toBeUndefined ( ) ;
142140 await expect ( runCommand ( ...cmdArgs , '--lint' ) ) . commandSuccess ( ) ;
143141 expect ( lintRunner . runEslint ) . toHaveBeenCalledTimes ( 1 ) ;
144142 expect ( mockedBuilder ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -194,14 +192,13 @@ function testBuildCommand<T extends Record<string, any>>(
194192 assertDirectories ( false ) ;
195193 } ) ;
196194
197- test ( 'Testing command with tsc warnings' , async ( ) => {
195+ test . skipIf ( ! ! process . env . CI ) ( 'Testing command with tsc warnings' , async ( ) => {
198196 mockedRunTsc . mockResolvedValueOnce ( {
199197 severity : 'warn' ,
200198 results : [ ] ,
201199 input : { } as any
202200 } ) ;
203201 await expect ( runCommand ( ...cmdArgs , '--tsc' ) ) . commandSuccess ( ) ;
204- expect ( process . env . CI ) . toBeUndefined ( ) ;
205202 expect ( tscRunner . runTsc ) . toHaveBeenCalledTimes ( 1 ) ;
206203 expect ( mockedBuilder ) . toHaveBeenCalledTimes ( 1 ) ;
207204 assertDirectories ( true ) ;
0 commit comments