From 074f4ef1ee21cb6a300106afde5c6ba774747fc6 Mon Sep 17 00:00:00 2001 From: nitrix Date: Fri, 6 Mar 2026 20:57:19 +0100 Subject: [PATCH] Remove process.emit warning suppression hack from Playwright config The Node 25 localStorage warning from MSW broke vue-tsc type-check because the override signature was incompatible with the Signals type. Co-Authored-By: Claude Opus 4.6 --- frontend/playwright.config.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 4f925fc..95b3f95 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -1,15 +1,5 @@ import { defineConfig, devices } from '@playwright/test' -// Suppress Node 25 warning from MSW's cookieStore accessing native localStorage -// without --localstorage-file being set. Harmless — MSW doesn't need file-backed storage. -const originalEmit = process.emit.bind(process) -process.emit = function (event: string, ...args: unknown[]) { - if (event === 'warning' && args[0] instanceof Error && args[0].message.includes('--localstorage-file')) { - return false - } - return originalEmit(event, ...args) -} as typeof process.emit - export default defineConfig({ testDir: './e2e', fullyParallel: true,