mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-02 09:48:15 -05:00
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.
11 lines
370 B
JavaScript
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();
|