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

Function fetchData

test/effected.spec.ts:1528–1533  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1526
1527 it("should handle complex nested scenarios", async () => {
1528 const fetchData = (url: string) =>
1529 effected(function* () {
1530 const data = yield* fetch(url);
1531 yield* log(`Fetched ${data} from ${url}`);
1532 return data;
1533 });
1534
1535 const logs: string[] = [];
1536 const urls = ["api/users", "api/posts", "api/comments"] as const;

Callers 1

effected.spec.tsFile · 0.70

Calls 1

effectedFunction · 0.90

Tested by

no test coverage detected