MCPcopy Create free account
hub / github.com/effect-app/libs / run

Function run

packages/vue/test/dependencyInvalidation.test.ts:135–143  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

133 const inventoryKey = ["$Inventory", "List", undefined]
134 setQueryReadDependencies(inventoryKey, new Set([repo]))
135 clearQueryReadDependencies(inventoryKey)
136 expect(getDerivedInvalidationKeys(new Set([repo]))).toEqual([])
137})
138
139it("derivation matches on both dependency type and name (repo vs signal)", () => {
140 const key = ["$Live", "Feed", undefined]
141 setQueryReadDependencies(key, new Set([DataDependencies.signal("Feed")]))
142 try {
143 // Same name but different type (repo "Feed") must NOT intersect a signal read.
144 expect(getDerivedInvalidationKeys(new Set([DataDependencies.repo("Feed")]))).toEqual([])
145 // Same type and name does intersect.
146 expect(getDerivedInvalidationKeys(new Set([DataDependencies.signal("Feed")]))).toEqual([key])

Callers

nothing calls this directly

Calls 2

fnFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected