123/**4 * The `deno task test` command: runs the generated project's local-first test5 * suite, retaining browser artifacts under `test-results/`.6 *7 * @module8 */910import { runDeno } from "../tooling/process.ts";11import { exitOnFailure, validatedCommandEnvironment } from "./shared.ts";1213const environment = await validatedCommandEnvironment();14const started = performance.now();15const exitCode = await runDeno(16 ["test", "--allow-read", "--allow-write=.", "tests"],17 environment,18);19exitOnFailure(exitCode, "local-first test suite; retained browser artifacts use test-results/");20console.log(21 `lofi test passed (${Math.round(performance.now() - started)}ms; artifacts: test-results/)`,22);