Unverified Commit 9f8076be authored by Jan Potoms's avatar Jan Potoms Committed by GitHub

Only retry tests on CI (#12998)

parent ca372a95
...@@ -136,6 +136,7 @@ const TIMINGS_API = `https://next-timings.jjsweb.site/api/timings` ...@@ -136,6 +136,7 @@ const TIMINGS_API = `https://next-timings.jjsweb.site/api/timings`
{ {
stdio: 'inherit', stdio: 'inherit',
env: { env: {
JEST_RETRY_TIMES: 3,
...process.env, ...process.env,
...(isAzure ...(isAzure
? { ? {
......
/* eslint-env jest */ /* eslint-env jest */
jest.retryTimes(3) if (process.env.JEST_RETRY_TIMES) {
const retries = Number(process.env.JEST_RETRY_TIMES)
console.log(`Configuring jest retries: ${retries}`)
jest.retryTimes(retries)
}
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