Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 04:30 UTC
fix(cli): update toolkits list unit test for unified table format
The unified table now always shows the Connected column (with "-" when no session data is available), so the test assertion that the column should be absent without --user-id is no longer valid.
jkomyno committed
Mar 9, 2026 at 15:38 UTC
487f1594a075f37605fdf22a6cbfd9190858bbcf
1 file changed
+3
-4
ts/packages/cli/test/src/commands/toolkits/toolkits.list.cmd.test.ts
+3
-4
@@ -69,9 +69,9 @@ const testConfigProvider = ConfigProvider.fromMap(
69
70
describe('CLI: composio toolkits list', () => {
71
layer(TestLive({ baseConfigProvider: testConfigProvider, toolkitsData }))(
72
- '[Given] no flags [Then] lists all toolkits without connected status',
72
+ '[Given] no flags [Then] lists all toolkits with unified table',
73
it => {
74
- it.scoped('lists all toolkits without connected column', () =>
74
+ it.scoped('lists all toolkits with catalog and connection columns', () =>
75
Effect.gen(function* () {
76
yield* cli(['toolkits', 'list']);
77
const lines = yield* MockConsole.getLines({ stripAnsi: true });
@@ -81,8 +81,7 @@ describe('CLI: composio toolkits list', () => {
81
expect(output).toContain('gmail');
82
expect(output).toContain('Slack');
83
expect(output).toContain('GitHub');
84
- // Legacy table fallback removes connection status when no user id is available.
85
- expect(output).not.toContain('Connected');
84
+ expect(output).toContain('Connected');
85
expect(output).toContain('Version');
86
expect(output).toContain('Listing 3 of 3 toolkits');
87
})