mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-27 23:06:54 +05:00
- Add YAML parsing using yaml npm package - Add JSON parsing using tree-sitter-json - Add symlinkTarget to ScanResult interface - Update ROADMAP: verify v0.20.0-v0.23.0 complete - Add 8 new tests (1687 total)
33 lines
912 B
TypeScript
33 lines
912 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
include: ["tests/**/*.test.ts"],
|
|
environmentMatchGlobs: [
|
|
// Use jsdom for TUI tests (React hooks)
|
|
["tests/unit/tui/**/*.test.ts", "jsdom"],
|
|
],
|
|
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: 91,
|
|
statements: 95,
|
|
},
|
|
},
|
|
},
|
|
})
|