MCPcopy Create free account
hub / github.com/antvis/AVA / execute

Function execute

__tests__/cli.test.ts:55–60  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

53});
54
55async function execute(argv: string[]): Promise<string> {
56 const write = vi.fn();
57 await run(argv, write);
58 expect(write).toHaveBeenCalledOnce();
59 return write.mock.calls[0][0];
60}
61
62describe('help and validation', () => {
63 it('prints root help with the current commands', async () => {

Callers 4

cli.test.tsFile · 0.70
cliFunction · 0.50
end-to-end.test.tsFile · 0.50
runFunction · 0.50

Calls 1

runFunction · 0.90

Tested by

no test coverage detected