Files
copilotkit__copilotkit/showcase/harness/vitest.integration.config.ts
Jordan Ritter 0522b7fa41 refactor(showcase): rename showcase/ops → showcase/harness
The monitoring/alerting service is a test harness (probes, assertions,
alerting), not an operations service. Rename the directory, package
name (@copilotkit/showcase-ops → @copilotkit/showcase-harness), all
internal references (Dockerfile, Prometheus metric prefix
showcase_ops_ → showcase_harness_, orchestrator log messages, probe
YAML nameExcludes, test fixtures), and regenerate pnpm-lock.yaml.

Wire protocol names (X-Ops-* headers) and shell-dashboard internal
API naming (OPS_BASE_URL, ops-api.ts) are intentionally unchanged —
they are stable contracts between sender and receiver.
2026-04-28 13:48:12 -07:00

23 lines
722 B
TypeScript

import { defineConfig } from "vitest/config";
// Integration tests share a single PocketBase instance (collection schema,
// status rows, alert_state rows) and cannot tolerate parallel writes
// racing across workers. Force a single forked process so all suites run
// in-order against the same shared fixture. `forks` (not `threads`)
// because some test helpers set env vars + require() singletons, and
// thread pool sharing would cross-contaminate those.
export default defineConfig({
test: {
include: ["test/integration/**/*.test.ts"],
environment: "node",
globals: false,
testTimeout: 30_000,
pool: "forks",
poolOptions: {
forks: {
singleFork: true,
},
},
},
});