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: 71023aec1546d6d677a65669c5665c0927ce0dd0
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import baseConfig, { workspaceSourcePaths } from "../../vitest.base.ts";
|
|
|
|
const evalConfig = defineConfig({
|
|
test: {
|
|
watch: false,
|
|
passWithNoTests: false,
|
|
pool: "forks",
|
|
maxWorkers: 1,
|
|
fileParallelism: false,
|
|
projects: [
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: "docs",
|
|
include: ["evals/**/*.docs.eval.ts"],
|
|
sequence: { concurrent: false },
|
|
testTimeout: 300_000,
|
|
hookTimeout: 300_000,
|
|
},
|
|
},
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: "host",
|
|
include: ["evals/**/*.eval.ts"],
|
|
exclude: ["evals/**/*.docs.eval.ts"],
|
|
sequence: { concurrent: false },
|
|
testTimeout: 300_000,
|
|
hookTimeout: 300_000,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|
|
|
|
const localConfig = mergeConfig(
|
|
baseConfig,
|
|
defineConfig({
|
|
resolve: {
|
|
alias: [{ find: /^@earendil-works\/pi-coding-agent$/, replacement: workspaceSourcePaths.codingAgentIndex }],
|
|
},
|
|
}),
|
|
);
|
|
|
|
export default process.env.PI_EVAL_CONTAINER === "1" ? evalConfig : mergeConfig(localConfig, evalConfig);
|