diff --git a/test/helpers/module-setup.ts b/test/helpers/module-setup.ts index 05a77fe8..3a784fa3 100644 --- a/test/helpers/module-setup.ts +++ b/test/helpers/module-setup.ts @@ -35,7 +35,7 @@ export async function resetTestModule(testModulePath: string, installModules = t } export async function cleanupTestModule(testModulePath: string): Promise { - await fs.remove(testModulePath); + await fs.rmdir(testModulePath, { recursive: true, maxRetries: 10 }); resetMSVSVersion(); }