mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Copy testRepeat helper to extension integration tests
This commit is contained in:
@@ -137,3 +137,9 @@ export async function asPromise<T>(event: vscode.Event<T>, timeout = vscode.env.
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function testRepeat(n: number, description: string, callback: (this: any) => any): void {
|
||||
for (let i = 0; i < n; i++) {
|
||||
test(`${description} (iteration ${i})`, callback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user