Skip to content

Commit

Permalink
chore: Fix env var access
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 8, 2025
1 parent fba8956 commit 97b127e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/e2e/shared/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export function defineConfig(config: Config) {
openMode: 0,
runMode: process.env.CI ? 1 : 0
},
...config
...config,
env: {
...config.env,
CI: Boolean(process.env.CI)
}
}
})
}
4 changes: 2 additions & 2 deletions packages/e2e/shared/specs/render-count.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function testRenderCount({
it(
`should render ${times(expected.mount)} on mount`,
{
...(process.env.CI ? { retries: 4 } : undefined)
...(Cypress.env('CI') ? { retries: 4 } : undefined)
},
() => {
cy.visit(path, stubConsoleLog)
Expand All @@ -54,7 +54,7 @@ export function testRenderCount({
it(
`should then render ${times(expected.update)} on updates`,
{
...(process.env.CI ? { retries: 4 } : undefined)
...(Cypress.env('CI') ? { retries: 4 } : undefined)
},
() => {
cy.visit(path, stubConsoleLog)
Expand Down

0 comments on commit 97b127e

Please sign in to comment.