mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-27 23:06:54 +05:00
- Raise branch coverage threshold from 90% to 92% - Add 21 new edge-case tests across modules - Watchdog: add tests for error handling, flushAll, polling mode - OllamaClient: add tests for AbortError and model not found - GetLinesTool: add tests for filesystem fallback, undefined params - GetClassTool: add tests for undefined extends, error handling - GetFunctionTool: add tests for error handling, undefined returnType Coverage results: - Lines: 97.83% (threshold 95%) - Branches: 92.01% (threshold 92%) - Functions: 99.16% (threshold 95%) - Statements: 97.83% (threshold 95%) - Total tests: 1441 (all passing)
29 lines
761 B
TypeScript
29 lines
761 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
include: ["tests/**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html", "lcov"],
|
|
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
exclude: [
|
|
"src/**/*.d.ts",
|
|
"src/**/index.ts",
|
|
"src/**/*.test.ts",
|
|
"src/tui/**/*.ts",
|
|
"src/tui/**/*.tsx",
|
|
"src/cli/**/*.ts",
|
|
],
|
|
thresholds: {
|
|
lines: 95,
|
|
functions: 95,
|
|
branches: 92,
|
|
statements: 95,
|
|
},
|
|
},
|
|
},
|
|
})
|