securityos/node_modules/next/dist/experimental/testmode/playwright/next-fixture.d.ts

13 lines
523 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { Page, TestInfo } from '@playwright/test';
import type { NextWorkerFixture, FetchHandler } from './next-worker-fixture';
import type { NextOptions } from './next-options';
export interface NextFixture {
onFetch: (handler: FetchHandler) => void;
}
export declare function applyNextFixture(use: (fixture: NextFixture) => Promise<void>, { testInfo, nextOptions, nextWorker, page, }: {
testInfo: TestInfo;
nextOptions: NextOptions;
nextWorker: NextWorkerFixture;
page: Page;
}): Promise<void>;