playwright/tests/components/ct-solid/playwright/index.ts

15 lines
360 B
TypeScript
Raw Normal View History

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