Download packages/session-backends/sqlite-node/vitest.config.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/session-backends/sqlite-node/vitest.config.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/session-backends/sqlite-node/vitest.config.ts
-
curl -L -o vitest.config.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/session-backends/sqlite-node/vitest.config.ts
1.43 kB
| 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 agentNode = fileURLToPath(new URL("../../agent/src/node.ts", import.meta.url)); | |
| const agentSessionTesting = fileURLToPath( | |
| new URL("../../agent/src/harness/session/testing/index.ts", import.meta.url), | |
| ); | |
| export default defineConfig({ | |
| test: { | |
| globals: true, | |
| environment: "node", | |
| reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"], | |
| coverage: { | |
| provider: "v8", | |
| all: true, | |
| include: ["src/**/*.ts"], | |
| exclude: ["src/**/*.d.ts"], | |
| reporter: ["text", "html", "lcov"], | |
| reportsDirectory: "coverage", | |
| }, | |
| }, | |
| resolve: { | |
| conditions: ["source"], | |
| alias: [ | |
| { find: /^@earendil-works\/pi-telemetry$/, replacement: telemetryIndex }, | |
| { find: /^@earendil-works\/pi-agent-core\/node$/, replacement: agentNode }, | |
| { find: /^@earendil-works\/pi-agent-core\/harness\/session\/testing$/, replacement: agentSessionTesting }, | |
| { find: /^@earendil-works\/pi-agent-core$/, replacement: agentIndex }, | |
| { find: /^@earendil-works\/pi-ai$/, replacement: aiIndex }, | |
| ], | |
| }, | |
| ssr: { resolve: { conditions: ["source"] } }, | |
| }); | |