mirror of
https://github.com/luckyyzh/pi-agent-integrated.git
synced 2026-10-03 11:09:34 +00:00
22 lines
670 B
TypeScript
22 lines
670 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const aiSrcIndex = fileURLToPath(new URL("../ai/src/index.ts", import.meta.url));
|
|
const aiSrcCompat = fileURLToPath(new URL("../ai/src/compat.ts", import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
testTimeout: 30000, // 30 seconds for API calls
|
|
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
|
|
silent: "passed-only",
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{ find: /^@earendil-works\/pi-ai$/, replacement: aiSrcIndex },
|
|
{ find: /^@earendil-works\/pi-ai\/compat$/, replacement: aiSrcCompat },
|
|
],
|
|
},
|
|
});
|