diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index ef4670e2ce..c205b4f527 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -72,8 +72,14 @@ export async function run() { print('Testing the backend startup'); await testBackendStart(appDir, isPostgres); - print('All tests successful, removing test dir'); - await fs.remove(rootDir); + if (process.env.CI) { + // Cleanup actually takes significant time, so skip it in CI since the + // runner will be destroyed anyway + print('All tests successful'); + } else { + print('All tests successful, removing test dir'); + await fs.remove(rootDir); + } // Just in case some child process was left hanging process.exit(0);