Download packages/coding-agent/vitest.config.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/vitest.config.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/vitest.config.ts
-
curl -L -o vitest.config.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/vitest.config.ts
1.18 kB
| 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 }, | |
| ], | |
| }, | |
| }), | |
| ); | |