Files
dev/third_party/pi/packages/session-backends/sqlite-node/vitest.benchmark.config.ts
alexion 4def357d09 chore(vendor): import pi 0.85.1
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree.

git-subtree-dir: third_party/pi

git-subtree-split: d981de1229ef899957bbe968bc8dcda02a21f477
2026-09-14 10:48:47 -04:00

30 lines
1.0 KiB
TypeScript

import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const telemetryIndex = fileURLToPath(new URL("../../telemetry/src/index.ts", import.meta.url));
const aiIndex = fileURLToPath(new URL("../../ai/src/index.ts", import.meta.url));
const agentIndex = fileURLToPath(new URL("../../agent/src/index.ts", import.meta.url));
const agentSessionTesting = fileURLToPath(
new URL("../../agent/src/harness/session/testing/index.ts", import.meta.url),
);
export default defineConfig({
test: {
environment: "node",
benchmark: {
include: ["benchmark/session/**/*.bench.ts"],
reporters: ["verbose"],
},
},
resolve: {
conditions: ["source"],
alias: [
{ find: /^@earendil-works\/pi-telemetry$/, replacement: telemetryIndex },
{ find: /^@earendil-works\/pi-agent-core\/session\/testing$/, replacement: agentSessionTesting },
{ find: /^@earendil-works\/pi-agent-core$/, replacement: agentIndex },
{ find: /^@earendil-works\/pi-ai$/, replacement: aiIndex },
],
},
ssr: { resolve: { conditions: ["source"] } },
});