15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
import '../src/assets/index.css';
|
|
import { beforeMount, afterMount } from '@playwright/experimental-ct-solid/hooks';
|
|
|
|
export type HooksConfig = {
|
|
route: string;
|
|
}
|
|
|
|
beforeMount<HooksConfig>(async ({ hooksConfig }) => {
|
|
console.log(`Before mount: ${JSON.stringify(hooksConfig)}`);
|
|
});
|
|
|
|
afterMount<HooksConfig>(async () => {
|
|
console.log(`After mount`);
|
|
});
|