fix: resolve require.resolve() in ES module Playwright config
- Replace require.resolve() with plain string paths for globalSetup and globalTeardown - This fixes compatibility with ES modules where require is not available Tests now run successfully with all browsers (Chromium, Firefox, WebKit, Mobile Chrome, Mobile Safari, Tablet)
This commit is contained in:
@@ -107,6 +107,6 @@ export default defineConfig({
|
||||
},
|
||||
|
||||
// Global setup and teardown
|
||||
globalSetup: require.resolve('./e2e/global-setup.ts'),
|
||||
globalTeardown: require.resolve('./e2e/global-teardown.ts'),
|
||||
globalSetup: './e2e/global-setup.ts',
|
||||
globalTeardown: './e2e/global-teardown.ts',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user