test: add E2E database seed and Playwright global setup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
e2e/global-setup.ts
Normal file
10
e2e/global-setup.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { seedTestDatabase } from "./seed";
|
||||
|
||||
export default async function globalSetup() {
|
||||
await seedTestDatabase();
|
||||
}
|
||||
|
||||
// Allow direct invocation: bun run e2e/global-setup.ts
|
||||
if (import.meta.main) {
|
||||
await globalSetup();
|
||||
}
|
||||
Reference in New Issue
Block a user