16 lines
375 B
TypeScript
Raw Normal View History

2022-08-23 20:34:20 +02:00
//@ts-check
import '../src/assets/index.css';
2022-08-23 20:34:20 +02:00
import { beforeMount, afterMount } from '@playwright/experimental-ct-svelte/hooks';
2022-10-18 22:04:54 +02:00
export type HooksConfig = {
route: string;
}
beforeMount<HooksConfig>(async ({ hooksConfig }) => {
2022-08-23 20:34:20 +02:00
console.log(`Before mount: ${JSON.stringify(hooksConfig)}`);
});
2022-10-18 22:04:54 +02:00
afterMount<HooksConfig>(async () => {
2022-08-23 20:34:20 +02:00
console.log(`After mount`);
});