mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0522b7fa41
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.
23 lines
722 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|