Skip to content

Commit

Permalink
[dev] Disable jest retries for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Apr 22, 2024
1 parent 05c0d7c commit 84849f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const { finishWorkers } = require('@pnpm/worker')

jest.retryTimes(1, {
const RETRY_COUNT = process.env.CI === "true" ? 1 : 0

jest.retryTimes(RETRY_COUNT, {
// Some tests don't clean up their resources completely and cause the retried
// run fail. Set logErrorsBeforeRetry to make it more clear that the retried
// run was a retry and not the first attempt. Otherwise Jest hides the first
Expand Down

0 comments on commit 84849f3

Please sign in to comment.