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

Function importSourceOf

apps/cloud/src/auth/v2-moved.test.ts:114–122  ·  view source on GitHub ↗
(eligible: boolean)

Source from the content-addressed store, hash-verified

112
113/** An import source that admits the user, recording whether it was asked. */
114const importSourceOf = (eligible: boolean) => {
115 const reads: string[] = [];
116 const source: V2ImportSource = {
117 emailVerified: () => Effect.sync(() => (reads.push("user"), true)),
118 activeMemberIds: () => Effect.sync(() => (reads.push("members"), eligible ? [USER] : [])),
119 subscriptions: () => Effect.sync(() => (reads.push("billing"), [])),
120 };
121 return { source, reads };
122};
123
124describe("v2 moved read", () => {
125 it.effect("reads the selected org's metadata", () =>

Callers 1

v2-moved.test.tsFile · 0.85

Calls 2

pushMethod · 0.80
syncMethod · 0.65

Tested by

no test coverage detected