We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3613e commit 16763deCopy full SHA for 16763de
client/e2e/global-teardown.js
@@ -0,0 +1,18 @@
1
+import { rimraf } from "rimraf";
2
+
3
+async function globalTeardown() {
4
+ if (!process.env.CI) {
5
+ console.log("Cleaning up test-results directory...");
6
+ // Add a small delay to ensure all Playwright files are written
7
+ await new Promise(resolve => setTimeout(resolve, 100));
8
+ await rimraf("./e2e/test-results");
9
+ console.log("Test-results directory cleaned up.");
10
+ }
11
+}
12
13
+export default globalTeardown;
14
15
+// Call the function when this script is run directly
16
+if (import.meta.url === `file://${process.argv[1]}`) {
17
+ globalTeardown().catch(console.error);
18
0 commit comments