This will call `jest.retryTimes` to retry the VSCode integration tests up to 3 times. This should help with the flaky tests.
13 lines
255 B
TypeScript
13 lines
255 B
TypeScript
import { env } from "vscode";
|
|
import { beforeEachAction } from "./test-config";
|
|
|
|
jest.retryTimes(3, {
|
|
logErrorsBeforeRetry: true,
|
|
});
|
|
|
|
beforeEach(async () => {
|
|
jest.spyOn(env, "openExternal").mockResolvedValue(false);
|
|
|
|
await beforeEachAction();
|
|
});
|