()
| 32 | * on the same entity. |
| 33 | */ |
| 34 | export default async function globalSetup() { |
| 35 | mkdirSync("tests/.auth", { recursive: true }); |
| 36 | |
| 37 | const browser = await chromium.launch(); |
| 38 | try { |
| 39 | await signInAndSaveState( |
| 40 | browser, |
| 41 | "alice@example.com", |
| 42 | "tests/.auth/alice.json", |
| 43 | ); |
| 44 | await signInAndSaveState( |
| 45 | browser, |
| 46 | "bob@example.com", |
| 47 | "tests/.auth/bob.json", |
| 48 | ); |
| 49 | } finally { |
| 50 | await browser.close(); |
| 51 | } |
| 52 | } |
nothing calls this directly
no test coverage detected