mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
16 lines
375 B
TypeScript
16 lines
375 B
TypeScript
//@ts-check
|
|
import '../src/assets/index.css';
|
|
import { beforeMount, afterMount } from '@playwright/experimental-ct-svelte/hooks';
|
|
|
|
export type HooksConfig = {
|
|
route: string;
|
|
}
|
|
|
|
beforeMount<HooksConfig>(async ({ hooksConfig }) => {
|
|
console.log(`Before mount: ${JSON.stringify(hooksConfig)}`);
|
|
});
|
|
|
|
afterMount<HooksConfig>(async () => {
|
|
console.log(`After mount`);
|
|
});
|