MCPcopy
hub / github.com/audreyt/ethercalc / collect

Function collect

packages/migrate/test/sources/filesystem-source.test.ts:86–90  ·  view source on GitHub ↗
(iter: AsyncIterable<T>)

Source from the content-addressed store, hash-verified

84}
85
86async function collect<T>(iter: AsyncIterable<T>): Promise<T[]> {
87 const out: T[] = [];
88 for await (const v of iter) out.push(v);
89 return out;
90}
91
92describe('roomsFromFilesystem — layout detection', () => {
93 it('treats a file path as a JSON blob', async () => {

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected