File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ describe('build-context.js', () => {
16
16
envBefore = process . env ;
17
17
process . env = { } ;
18
18
for ( const [ key , value ] of Object . entries ( envBefore ) ) {
19
- if ( key . startsWith ( 'LHCI ' ) ) continue ;
20
- if ( key . startsWith ( 'TRAVIS ' ) ) continue ;
21
- if ( key . startsWith ( 'GITHUB ' ) ) continue ;
22
- if ( key . startsWith ( 'CI ' ) ) continue ;
19
+ if ( key . startsWith ( 'LHCI_ ' ) ) continue ;
20
+ if ( key . startsWith ( 'TRAVIS_ ' ) ) continue ;
21
+ if ( key . startsWith ( 'GITHUB_ ' ) ) continue ;
22
+ if ( key . startsWith ( 'CI_ ' ) ) continue ;
23
23
process . env [ key ] = value ;
24
24
}
25
25
} ) ;
@@ -55,6 +55,7 @@ describe('build-context.js', () => {
55
55
56
56
describe ( '#getCurrentBranch()' , ( ) => {
57
57
it ( 'should not throw' , ( ) => {
58
+ if ( process . env . CI ) return ; // CI-based runs rely on the env overrides
58
59
buildContext . getCurrentBranch ( hash ) ;
59
60
} ) ;
60
61
You can’t perform that action at this time.
0 commit comments