MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / mockStream

Function mockStream

tests/EntityRepository.test.ts:131–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 orderBy: { name: QueryOrder.DESC },
130 };
131 async function* mockStream() {
132 yield { name: 'bar' };
133 }
134 methods.stream.mockReturnValue(mockStream());
135 const results = [];
136 for await (const item of repo.stream(options)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected