MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / asyncGeneratorToArray

Function asyncGeneratorToArray

src/core/utils/user-config.spec.ts:18–24  ·  view source on GitHub ↗
(gen: AsyncGenerator<string, string, unknown>)

Source from the content-addressed store, hash-verified

16 });
17
18 const asyncGeneratorToArray = async (gen: AsyncGenerator<string, string, unknown>) => {
19 const entries: string[] = [];
20 for await (const entry of gen) {
21 entries.push(entry);
22 }
23 return entries;
24 };
25
26 it("should handle empty folders", async () => {
27 vol.fromNestedJSON(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…