Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

18 lines
450 B
TypeScript

import { test as base } from '@playwright/test';
import { MockApi } from './mock-api';
type Fixtures = {
mockApi: MockApi;
};
export const test = base.extend<Fixtures>({
mockApi: async ({ page }, use) => {
const mockApi = new MockApi(page);
// Always mock server-providers — called on every page load by root layout
await mockApi.mockServerProviders();
await use(mockApi);
},
});
export { expect } from '@playwright/test';