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

Function useHarness

packages/core/fumadb/src/query/table-policy.test.ts:180–185  ·  view source on GitHub ↗
(run: (orm: TablePolicyQuery) => Promise<A>)

Source from the content-addressed store, hash-verified

178};
179
180const useHarness = <A>(run: (orm: TablePolicyQuery) => Promise<A>) =>
181 Effect.acquireUseRelease(
182 Effect.promise(makeHarness),
183 ({ orm }) => Effect.promise(() => run(orm)),
184 ({ close }) => Effect.promise(close),
185 );
186
187const seedTenants = async (orm: TablePolicyQuery) => {
188 const seed = withQueryContext(orm, makeContext(["tenant-a", "tenant-b"], "seed"));

Callers 1

Calls 1

runFunction · 0.50

Tested by

no test coverage detected