29 lines
858 B
TypeScript
29 lines
858 B
TypeScript
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import baseConfig, { workspaceSourcePaths } from "../../vitest.base.ts";
|
|
|
|
export default mergeConfig(
|
|
baseConfig,
|
|
defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
testTimeout: 30000,
|
|
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
|
|
silent: "passed-only",
|
|
server: {
|
|
deps: {
|
|
external: [/@silvia-odwyer\/photon-node/],
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{ find: /^@mariozechner\/pi-ai$/, replacement: workspaceSourcePaths.aiIndex },
|
|
{ find: /^@mariozechner\/pi-ai\/oauth$/, replacement: workspaceSourcePaths.aiOAuth },
|
|
{ find: /^@mariozechner\/pi-agent-core$/, replacement: workspaceSourcePaths.agentIndex },
|
|
{ find: /^@mariozechner\/pi-tui$/, replacement: workspaceSourcePaths.tuiIndex },
|
|
],
|
|
},
|
|
}),
|
|
);
|