26 lines · 746 B · TypeScript
RawDownload
import { expect, it } from "@effect/vitest"; import { runServicePreflight } from "./servicePreflight.ts";import { SERVICE_LAUNCHER_PROTOCOL } from "./serviceProtocol.ts"; it("requires the database-snapshot launcher protocol", () => {  expect(    runServicePreflight({      databasePath: "/missing/state.sqlite",      launcherProtocol: SERVICE_LAUNCHER_PROTOCOL - 1,      version: "1.2.3",    }),  ).toMatchObject({ status: "blocked", version: "1.2.3" });   expect(    runServicePreflight({      databasePath: "/missing/state.sqlite",      launcherProtocol: SERVICE_LAUNCHER_PROTOCOL,      version: "1.2.3",    }),  ).toEqual({    status: "ready",    version: "1.2.3",    launcherProtocol: SERVICE_LAUNCHER_PROTOCOL,  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t