MCPcopy
hub / github.com/Fission-AI/OpenSpec / expectJsonOnlyOutput

Function expectJsonOnlyOutput

test/cli-e2e/basic.test.ts:29–33  ·  view source on GitHub ↗
(result: Awaited<ReturnType<typeof runCLI>>)

Source from the content-addressed store, hash-verified

27}
28
29function expectJsonOnlyOutput(result: Awaited<ReturnType<typeof runCLI>>) {
30 expect(result.exitCode).toBe(0);
31 expect(result.stderr).toBe('');
32 expect(() => JSON.parse(result.stdout)).not.toThrow();
33}
34
35afterAll(async () => {
36 await Promise.all(tempRoots.map((dir) => fs.rm(dir, { recursive: true, force: true })));

Callers 1

basic.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected