From f4f1f02681c0aeea904d73fbba94650faf4d686d Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Tue, 31 Mar 2026 08:01:01 +0000 Subject: [PATCH] fix(e2e): use ESM imports instead of require() for fs module The project uses ESM ("type": "module"), so require("fs") was failing. Switch to import { fs } from "fs" at the top of the file. Co-Authored-By: Paperclip --- apps/web/e2e/tests/fixtures.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/e2e/tests/fixtures.ts b/apps/web/e2e/tests/fixtures.ts index c2d1316..141d315 100644 --- a/apps/web/e2e/tests/fixtures.ts +++ b/apps/web/e2e/tests/fixtures.ts @@ -1,5 +1,6 @@ import { test as base, Page, Browser, BrowserContext } from "@playwright/test"; import path from "path"; +import fs from "fs"; const STAFF_STORAGE = path.join(process.cwd(), ".auth/staff.json"); const CLIENT_STORAGE = path.join(process.cwd(), ".auth/client.json"); @@ -65,14 +66,14 @@ async function getStorageState(browser: Browser, userType: UserType): Promise