Move playwrite stuff to utils folder

This commit is contained in:
HarelM
2026-07-09 13:33:29 +03:00
parent c00395ee11
commit fb00dea285
14 changed files with 12 additions and 12 deletions
+12
View File
@@ -0,0 +1,12 @@
import fs from "node:fs";
import path from "node:path";
/**
* Clears the istanbul coverage output directory before the e2e run so stale
* coverage from previous runs is not merged into the report.
*/
export default function globalSetup(): void {
const dir = path.resolve(process.cwd(), ".nyc_output");
fs.rmSync(dir, { recursive: true, force: true });
fs.mkdirSync(dir, { recursive: true });
}