Unverified Commit 420560d0 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[ci] Use `NEXT_TEST_CI` instead of `CI` for e2e test retry guard (#90606)

`run-tests.js` explicitly unsets `CI` in the spawned Jest child process
and preserves the original value as `NEXT_TEST_CI`. Since
`test/lib/e2e-utils/index.ts` runs inside that child process,
`process.env.CI` is always empty, making the `jest.retryTimes(1)` call
effectively dead code in CI.
parent 891cfe69
......@@ -126,7 +126,7 @@ if (!e2eGlobal.__NEXT_E2E_TEST_CONFIG_PATCHED__) {
global.test = wrapJestTestFn(global.test) as jest.It
}
if (process.env.CI) {
if (process.env.NEXT_TEST_CI) {
jest.retryTimes(1)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment