pnpm
/
jest.setup.js
14 строк · 514.0 Байт
1const { finishWorkers } = require('@pnpm/worker')2
3jest.retryTimes(1, {4// Some tests don't clean up their resources completely and cause the retried5// run fail. Set logErrorsBeforeRetry to make it more clear that the retried6// run was a retry and not the first attempt. Otherwise Jest hides the first7// attempt. This makes it easier to distinguish between a test that's truly8// broken and one that's not retry-able.9logErrorsBeforeRetry: true10})11
12afterAll(async () => {13await finishWorkers()14})15