playwright/tests/components/ct-svelte/playwright/index.ts
2022-08-23 11:34:20 -07:00

11 lines
269 B
TypeScript

//@ts-check
import { beforeMount, afterMount } from '@playwright/experimental-ct-svelte/hooks';
beforeMount(async ({ hooksConfig }) => {
console.log(`Before mount: ${JSON.stringify(hooksConfig)}`);
});
afterMount(async ({}) => {
console.log(`After mount`);
});