mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-30 18:48:15 -05:00
15 lines
514 B
JavaScript
15 lines
514 B
JavaScript
const { finishWorkers } = require('@pnpm/worker')
|
|
|
|
jest.retryTimes(1, {
|
|
// 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
|
|
// attempt. This makes it easier to distinguish between a test that's truly
|
|
// broken and one that's not retry-able.
|
|
logErrorsBeforeRetry: true
|
|
})
|
|
|
|
afterAll(async () => {
|
|
await finishWorkers()
|
|
})
|