mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 05:42:27 -04:00
test: set logErrorsBeforeRetry to debug failing retries (#7028)
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
jest.retryTimes(1);
|
||||
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(() => {
|
||||
// @ts-expect-error
|
||||
|
||||
Reference in New Issue
Block a user