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

next
ts 20 lines 889 Bytes
Raw
1 import { Effect } from 'effect';
2 import { describe, expect, layer } from '@effect/vitest';
3 import { cli, MockConsole, TestLive } from 'test/__utils__';
4
5 describe('CLI: composio dev projects switch', () => {
6 layer(TestLive({ cliUserConfig: { developerDangerousCommandsEnabled: true } }))(it => {
7 it.effect('[Then] it reports global developer project switching is deprecated', () =>
8 Effect.gen(function* () {
9 yield* cli(['dev', 'projects', 'switch']);
10
11 const stdout = yield* MockConsole.getLines({ stream: 'stdout' });
12 const stderr = yield* MockConsole.getLines({ stream: 'stderr', stripAnsi: true });
13 expect(stdout).toEqual([]);
14 expect(stderr).toEqual([
15 'Global developer project switching is no longer supported. Run `composio dev init` in a directory to bind it to a developer project.',
16 ]);
17 })
18 );
19 });
20 });