MCPcopy Create free account
hub / github.com/hashintel/hash / globalSetup

Function globalSetup

tests/hash-playwright/global-setup.ts:34–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 * on the same entity.
33 */
34export 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}

Callers

nothing calls this directly

Calls 2

signInAndSaveStateFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected