MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / fetchData

Function fetchData

test/effected.proof.ts:330–335  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

328
329 it("should handle complex nested scenarios", async () => {
330 const fetchData = (url: string) =>
331 effected(function* () {
332 const data = yield* fetch(url);
333 yield* log(`Fetched ${data} from ${url}`);
334 return data;
335 });
336
337 const urls = ["api/users", "api/posts", "api/comments"] as const;
338

Callers 1

effected.proof.tsFile · 0.70

Calls 1

effectedFunction · 0.90

Tested by

no test coverage detected