Add ability to output the CLI in JSON format #124

Merged
Vylpes merged 4 commits from feature/73-cli-json into develop 2024-01-19 18:02:16 +00:00
Showing only changes of commit 55c11761be - Show all commits

View file

@ -105,7 +105,7 @@ describe('json', () => {
const json = JSON.parse(result.stdout); const json = JSON.parse(result.stdout);
expect(json).toBeDefined(); expect(json).toBeDefined();
}); }, 5000);
}); });
describe('sort', () => { describe('sort', () => {
@ -134,7 +134,7 @@ describe('sort', () => {
expect(result.code).toBe(1); expect(result.code).toBe(1);
expect(result.stderr).toBe("error: option '--sort <sort>' argument 'invalid' is invalid. Allowed choices are hot, new, top.\n"); expect(result.stderr).toBe("error: option '--sort <sort>' argument 'invalid' is invalid. Allowed choices are hot, new, top.\n");
}); }, 5000);
}); });
describe('query-metadata', () => { describe('query-metadata', () => {