agent-orchestrator/packages/core/vitest.config.ts

24 lines
740 B
TypeScript

import { defineConfig } from "vitest/config";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
alias: {
// Integration tests import real plugins. These aliases resolve
// package names to source files so we don't need circular devDeps
// (plugins depend on core, core can't depend on plugins).
"@agent-orchestrator/plugin-tracker-github": resolve(
__dirname,
"../plugins/tracker-github/src/index.ts",
),
"@agent-orchestrator/plugin-scm-github": resolve(
__dirname,
"../plugins/scm-github/src/index.ts",
),
},
},
});