Files
playwriter/playwriter/vitest.config.ts
Tommy D. Rossi 806d2b108b fix: suppress Playwright CDP cleanup assertion errors in tests
- Add vitest.setup.ts to handle unhandled rejections from CDP disconnect
- Fix race condition in debugger test by awaiting evaluate after resume
- Add delay before browser.close() in service worker test
2026-02-01 17:08:07 +01:00

17 lines
374 B
TypeScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 60000, // 60 seconds for Chrome startup
hookTimeout: 30000,
exclude: ['dist', 'dist/**/*', 'node_modules/**'],
setupFiles: ['./vitest.setup.ts'],
env: {
PLAYWRITER_NODE_ENV: 'development',
},
},
})