Retry VSCode integration tests
This will call `jest.retryTimes` to retry the VSCode integration tests up to 3 times. This should help with the flaky tests.
This commit is contained in:
@@ -15,6 +15,10 @@ import { beforeEachAction } from "./test-config";
|
||||
// create an extension storage location
|
||||
let removeStorage: tmp.DirResult["removeCallback"] | undefined;
|
||||
|
||||
jest.retryTimes(3, {
|
||||
logErrorsBeforeRetry: true,
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
// Set the CLI version here before activation to ensure we don't accidentally try to download a cli
|
||||
await beforeEachAction();
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import { env } from "vscode";
|
||||
import { beforeEachAction } from "./test-config";
|
||||
|
||||
jest.retryTimes(3, {
|
||||
logErrorsBeforeRetry: true,
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
jest.spyOn(env, "openExternal").mockResolvedValue(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user