mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-08-19 21:53:48 +00:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
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,
|
|
// Tests run offline by default; opt in with allowNetwork() from test/test-network-env.ts.
|
|
env: { PI_OFFLINE: "1" },
|
|
unstubEnvs: true,
|
|
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
|
|
silent: "passed-only",
|
|
server: {
|
|
deps: {
|
|
external: [/@silvia-odwyer\/photon-node/],
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{ find: /^@earendil-works\/pi-ai$/, replacement: workspaceSourcePaths.aiIndex },
|
|
{ find: /^@earendil-works\/pi-agent-core$/, replacement: workspaceSourcePaths.agentIndex },
|
|
{ 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 },
|
|
],
|
|
},
|
|
}),
|
|
);
|