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

Function assertV1SourceRows

apps/local/src/db/v1-v2-migration.test.ts:840–846  ·  view source on GitHub ↗
(input: { readonly path: string; readonly scopeId: string })

Source from the content-addressed store, hash-verified

838};
839
840const assertV1SourceRows = async (input: { readonly path: string; readonly scopeId: string }) => {
841 expect(existsSync(input.path)).toBe(true);
842 const client = await openLocalLibsql(input.path);
843 const sources = await client.execute("SELECT scope_id, id FROM source");
844 client.close();
845 expect(sources.rows).toEqual([{ scope_id: input.scopeId, id: "stripe_api" }]);
846};
847
848const assertV2IntegrationRows = async (input: {
849 readonly path: string;

Callers 1

Calls 3

openLocalLibsqlFunction · 0.90
executeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected