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 21, 03:37 UTC
| 1 | import { expect, test } from 'bun:test'; |
| 2 | import { fetchPage } from './helpers'; |
| 3 | |
| 4 | test('install commands and setup prompts survive HTTP Markdown and the full corpus', async () => { |
| 5 | const cases = [ |
| 6 | ['/docs/quickstart.md', 'npm install @composio/core', 'uv add python-dotenv composio', 'Use @composio/slim'], |
| 7 | ['/docs/providers/anthropic.md', 'npm install @composio/core @composio/anthropic', 'pip install composio composio_anthropic'], |
| 8 | ['/docs/agent-setup/clients.md', 'Use the $composio skill', 'Use the /composio skill'], |
| 9 | ['/llms-full.txt', 'npm install @composio/core', 'uv add python-dotenv composio', 'Use @composio/slim'], |
| 10 | ]; |
| 11 | for (const [path, ...facts] of cases) { |
| 12 | const response = await fetchPage(path); |
| 13 | expect(response.status, path).toBe(200); |
| 14 | const text = await response.text(); |
| 15 | for (const fact of facts) expect(text, `${path}: ${fact}`).toContain(fact); |
| 16 | } |
| 17 | }); |