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

14 lines
295 B
TypeScript
Raw Normal View History

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