MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / expectToolRows

Function expectToolRows

apps/local/src/db/v1-v2-boot-drive.test.ts:217–226  ·  view source on GitHub ↗
(dbPath: string, slug: string, minCount: number)

Source from the content-addressed store, hash-verified

215 });
216
217const expectToolRows = async (dbPath: string, slug: string, minCount: number) => {
218 const client = await openLocalLibsql(dbPath);
219 const rows = await queryRows<{ n: number }>(
220 client,
221 "SELECT COUNT(*) AS n FROM tool WHERE integration = ?",
222 [slug],
223 );
224 expect(Number(rows[0]?.n)).toBeGreaterThanOrEqual(minCount);
225 client.close();
226};
227
228describe("full-boot drive across migration states", () => {
229 it.effect("fresh database: boot → add spec → invoke → reboot → invoke again", () =>

Callers 1

Calls 2

openLocalLibsqlFunction · 0.90
closeMethod · 0.65

Tested by

no test coverage detected