Files
quiver-launcher/e2e/web/warm.js
T
Thomas Georgiadis 93b2dcbdd0 Run the web tests in parallel, split by area, with a shorter default wait (#283)
controller.test.js held nearly all the tests, and the test runner only runs separate files at once. Its tests are now
in files by area, sharing what they need from controller.js. A wrong selector fails after 10 seconds, not 30.

Vite's servers bundling the launcher's dependencies at once in the same folder made first loads too slow to wait for,
so `pnpm web` opens the app once first (warm.js), and navigation keeps a limit of its own.
2026-11-03 22:44:26 +11:00

11 lines
370 B
JavaScript

/**
* Opens the app once before the test files start, for Vite to bundle the launcher's dependencies into its cache. Left to
* the test files, each one's server does it at once, in the same folder, and their first loads take too long to wait for.
*/
import { openApp, stop } from "./app.js";
const s = await openApp();
await s.close();
await stop();
process.exit();