add separation of msw handlers into browser and e2e contexts, and replace the import.meta statements into the browser file since only the browser can handle esmodules
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { expect, test as base } from '@playwright/test';
|
||||
import { createWorkerFixture } from 'playwright-msw';
|
||||
|
||||
import { handlers } from './src/mocks/handlers';
|
||||
import { handlers } from './src/mocks/e2e-handlers';
|
||||
|
||||
import type { MockServiceWorker } from 'playwright-msw';
|
||||
const test = base.extend<{
|
||||
|
||||
Reference in New Issue
Block a user