()
| 73 | const poolId = process.env.VITEST_POOL_ID; |
| 74 | |
| 75 | async function createAndVisitNewPage() { |
| 76 | const page = await globalThis.puppeteerBrowserContext[poolId].newPage(); |
| 77 | await page.goto(`http://127.0.0.1:8080/index.html`); |
| 78 | return page; |
| 79 | } |
| 80 | |
| 81 | async function newPageContext() { |
| 82 | // Reuse a single page per worker/pool to avoid the overhead of creating a |
no outgoing calls
no test coverage detected