install playwright-msw to enable override of routes in tests
This commit is contained in:
13
src/Umbraco.Web.UI.Client/test.ts
Normal file
13
src/Umbraco.Web.UI.Client/test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { expect, test as base } from '@playwright/test';
|
||||
import { createWorkerFixture } from 'playwright-msw';
|
||||
|
||||
import { handlers } from './src/mocks/handlers';
|
||||
|
||||
import type { MockServiceWorker } from 'playwright-msw';
|
||||
const test = base.extend<{
|
||||
worker: MockServiceWorker;
|
||||
}>({
|
||||
worker: createWorkerFixture(...handlers),
|
||||
});
|
||||
|
||||
export { test, expect };
|
||||
Reference in New Issue
Block a user