@devries-cameron20 / composio-1 / commits / 4e0638ecf
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(cli): update toolkits list e2e test for Tool Router response shape

The piped JSON output now uses Tool Router fields (is_no_auth, enabled, composio_managed_auth_schemes) instead of legacy fields (tools_count, triggers_count). Empty results output `[]` instead of empty string.

jkomyno committed Feb 24, 2026 at 20:43 UTC 4e0638ecfe7fadb8e3fd4b93782cc43090ad7aea
1 file changed +5 -4
ts/e2e-tests/cli/toolkits/list/e2e.test.ts
+5 -4
@@ -57,9 +57,10 @@ e2e(import.meta.url, {
57 const item = JSON.parse(sanitizeOutput(exactResult.stdout))[0];
58 expect(item).toHaveProperty('name');
59 expect(item).toHaveProperty('slug');
60 - expect(item).toHaveProperty('tools_count');
61 - expect(item).toHaveProperty('triggers_count');
60 expect(item).toHaveProperty('description');
61 + expect(item).toHaveProperty('is_no_auth');
62 + expect(item).toHaveProperty('enabled');
63 + expect(item).toHaveProperty('composio_managed_auth_schemes');
64 });
65 });
66
@@ -93,8 +94,8 @@ e2e(import.meta.url, {
94 expect(noFuzzyResult.stderr).toBe('');
95 });
96
96 - it('stdout is empty (no results)', () => {
97 - expect(sanitizeOutput(noFuzzyResult.stdout)).toBe('');
97 + it('stdout is an empty JSON array (no results)', () => {
98 + expect(sanitizeOutput(noFuzzyResult.stdout)).toBe('[]');
99 });
100 });
101 },