()
| 6 | const E2E_DB = path.join(__dirname, 'tests', 'e2e', 'e2e.db'); |
| 7 | |
| 8 | function getFreePort() { |
| 9 | const srv = net.createServer(); |
| 10 | srv.listen(0); |
| 11 | const port = srv.address().port; |
| 12 | srv.close(); |
| 13 | return port; |
| 14 | } |
| 15 | |
| 16 | // Cache the port in an env var so Playwright workers (separate processes that |
| 17 | // re-evaluate this config) use the same port as the main process. |
no test coverage detected