Skip to content

Commit 5363f1c

Browse files
committedJan 8, 2025
chore: Fix env var access
1 parent 9c4f7c5 commit 5363f1c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
 

Diff for: ‎packages/e2e/shared/cypress.config.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export function defineConfig(config: Config) {
2020
openMode: 0,
2121
runMode: process.env.CI ? 1 : 0
2222
},
23-
...config
23+
...config,
24+
env: {
25+
...config.env,
26+
CI: Boolean(process.env.CI)
27+
}
2428
}
2529
})
2630
}

Diff for: ‎packages/e2e/shared/specs/render-count.cy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function testRenderCount({
4343
it(
4444
`should render ${times(expected.mount)} on mount`,
4545
{
46-
...(process.env.CI ? { retries: 4 } : undefined)
46+
...(Cypress.env('CI') ? { retries: 4 } : undefined)
4747
},
4848
() => {
4949
cy.visit(path, stubConsoleLog)
@@ -54,7 +54,7 @@ export function testRenderCount({
5454
it(
5555
`should then render ${times(expected.update)} on updates`,
5656
{
57-
...(process.env.CI ? { retries: 4 } : undefined)
57+
...(Cypress.env('CI') ? { retries: 4 } : undefined)
5858
},
5959
() => {
6060
cy.visit(path, stubConsoleLog)

0 commit comments

Comments
 (0)