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 821 Bytes
Raw
1 import { constants } from '@composio/core';
2 import { describe, expect, it } from 'vitest';
3 import {
4 DEFAULT_BASE_URL,
5 DEFAULT_WEB_URL,
6 USER_COMPOSIO_DIR,
7 USER_CONFIG_FILE_NAME,
8 } from 'src/constants';
9
10 // `src/constants.ts` spells these out instead of importing them so the CLI never
11 // evaluates the core SDK's root entry at startup. This is the only place the two
12 // copies meet: if core changes a value, this fails instead of the CLI drifting.
13 describe('constants mirrored from @composio/core', () => {
14 it('match the core SDK values', () => {
15 expect(DEFAULT_BASE_URL).toBe(constants.DEFAULT_BASE_URL);
16 expect(DEFAULT_WEB_URL).toBe(constants.DEFAULT_WEB_URL);
17 expect(USER_CONFIG_FILE_NAME).toBe(constants.USER_DATA_FILE_NAME);
18 expect(USER_COMPOSIO_DIR).toBe(constants.COMPOSIO_DIR);
19 });
20 });