Add vitest test infrastructure for the package

This commit is contained in:
EislM0203
2026-05-14 13:10:52 +02:00
parent f3a8b5a18f
commit 336285eaa2
3 changed files with 4633 additions and 0 deletions
+4620
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -8,11 +8,17 @@
"extensions": ["./extensions"],
"prompts": ["./prompts"]
},
"scripts": {
"test": "vitest --run"
},
"peerDependencies": {
"@earendil-works/pi-ai": "*",
"@earendil-works/pi-agent-core": "*",
"@earendil-works/pi-coding-agent": "*",
"@earendil-works/pi-tui": "*",
"typebox": "*"
},
"devDependencies": {
"vitest": "^3.2.4"
}
}
+7
View File
@@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["extensions/**/*.test.ts"],
},
});