Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

servicePreflight.test.ts

18 lines502 Bytes

1import { expect, it } from "@effect/vitest";
2​
3import { runServicePreflight } from "./servicePreflight.ts";
4​
5it.each([1, 2])("blocks legacy launcher protocol %i", (launcherProtocol) => {
6 expect(
7 runServicePreflight({
8 databasePath: "/missing/state.sqlite",
9 launcherProtocol,
10 version: "1.2.3",
11 }),
12 ).toEqual({
13 status: "blocked",
14 version: "1.2.3",
15 reason:
16 "This release requires a newer T3 Code service launcher. Update it on the server machine.",
17 });
18});