Remove process.emit warning suppression hack from Playwright config
All checks were successful
CI / backend-test (push) Successful in 55s
CI / frontend-test (push) Successful in 21s
CI / frontend-e2e (push) Successful in 49s
CI / build-and-publish (push) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 20:57:19 +01:00
parent 1afdd0a462
commit 074f4ef1ee

View File

@@ -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,