MCPcopy Create free account
hub / github.com/code-pushup/cli / runSetup

Function runSetup

packages/plugin-axe/src/lib/runner/setup.ts:58–66  ·  view source on GitHub ↗
(
  setupFn: SetupFunction,
  page: Page,
)

Source from the content-addressed store, hash-verified

56
57/** Executes the setup function with the provided Playwright page. */
58export async function runSetup(
59 setupFn: SetupFunction,
60 page: Page,
61): Promise<void> {
62 await logger.task('Running authentication setup script', async () => {
63 await setupFn(page);
64 return { message: 'Authentication setup completed', result: undefined };
65 });
66}

Callers 2

setup.int.test.tsFile · 0.85
captureAuthStateMethod · 0.85

Calls 1

taskMethod · 0.80

Tested by

no test coverage detected