playwright/tests/components/ct-svelte-vite/playwright/index.ts

12 lines
268 B
TypeScript
Raw Normal View History

//@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`);
});