MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / gen

Function gen

src/lib/prompt.test.ts:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25 it('handles input arriving in multiple chunks', async () => {
26 async function* gen() {
27 yield 'foo';
28 yield 'bar';
29 yield '\n';
30 }
31 const input = Readable.from(gen());
32 const output = new CaptureStream();
33 expect(await promptText('? ', { input, output })).toBe('foobar');

Callers 1

prompt.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected