continue-custom/extensions/cli/vitest.smoke-api.config.ts
Nate 25fe40a546 Add smoke tests for real API connectivity
Add a new smoke-api test suite that proves the CLI can complete real LLM
round-trips against the Anthropic API. Tests cover headless mode,
serve mode, and all-tools execution. Runs sequentially to avoid rate
limits, skips gracefully when API keys are missing (fork PRs), and
is wired into CI as a required check with allowed-skips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:30:41 -08:00

19 lines
534 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
// No setupFiles — vitest.setup.ts mocks global.fetch which breaks real API calls
include: ["src/smoke-api/**/*.test.ts"],
testTimeout: 60000,
hookTimeout: 60000,
retry: 2,
// Run sequentially to avoid rate-limiting from real API calls
fileParallelism: false,
sequence: { concurrent: false },
},
resolve: {
extensions: [".js", ".ts", ".tsx", ".json"],
},
});