File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ export function defineConfig(config: Config) {
20
20
openMode : 0 ,
21
21
runMode : process . env . CI ? 1 : 0
22
22
} ,
23
- ...config
23
+ ...config ,
24
+ env : {
25
+ ...config . env ,
26
+ CI : Boolean ( process . env . CI )
27
+ }
24
28
}
25
29
} )
26
30
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function testRenderCount({
43
43
it (
44
44
`should render ${ times ( expected . mount ) } on mount` ,
45
45
{
46
- ...( process . env . CI ? { retries : 4 } : undefined )
46
+ ...( Cypress . env ( 'CI' ) ? { retries : 4 } : undefined )
47
47
} ,
48
48
( ) => {
49
49
cy . visit ( path , stubConsoleLog )
@@ -54,7 +54,7 @@ export function testRenderCount({
54
54
it (
55
55
`should then render ${ times ( expected . update ) } on updates` ,
56
56
{
57
- ...( process . env . CI ? { retries : 4 } : undefined )
57
+ ...( Cypress . env ( 'CI' ) ? { retries : 4 } : undefined )
58
58
} ,
59
59
( ) => {
60
60
cy . visit ( path , stubConsoleLog )
You can’t perform that action at this time.
0 commit comments