playwright/tests/components/ct-react-vite/playwright/index.ts
2022-07-12 09:37:33 -07:00

14 lines
295 B
TypeScript

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