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 34 lines 922 Bytes
Raw
1 import { e2e, type E2ETestResult } from '@e2e-tests/utils';
2 import { TIMEOUTS } from '@e2e-tests/utils/const';
3 import { describe, it, expect, beforeAll } from 'bun:test';
4
5 declare module 'bun' {
6 interface Env {
7 ANTHROPIC_API_KEY: string;
8 }
9 }
10
11 e2e(import.meta.url, {
12 versions: { node: ['current'] },
13 usesFixtures: true,
14 env: {
15 ANTHROPIC_API_KEY: Bun.env.ANTHROPIC_API_KEY,
16 },
17 defineTests: ({ runFixture }) => {
18 let result: E2ETestResult;
19
20 beforeAll(async () => {
21 result = await runFixture({ filename: 'index.mjs' });
22 }, TIMEOUTS.LLM_LONG);
23
24 describe('@composio/claude-agent-sdk on current Node.js', () => {
25 it('exits successfully', () => {
26 expect(result.exitCode).toBe(0);
27 });
28
29 it('executes the wrapped tool through Claude Agent SDK MCP', () => {
30 expect(result.stdout).toContain('claude query executed wrapped tool');
31 });
32 });
33 },
34 });