Add scripts/test-report.ts (bun run test:report): it runs the full suite with JUnit + lcov output, then renders a gitignored reports/test-report.md — a summary, a describe-grouped inventory (pass/todo/fail), and a coverage table. The report is written even when tests fail and the script exits with the test run's own status, so CI can gate on it later. Adds fast-xml-parser (dev) for robust JUnit parsing; lcov is parsed by hand.
24 lines
525 B
JSON
24 lines
525 B
JSON
{
|
|
"name": "kitchen-md",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/core",
|
|
"packages/bin"
|
|
],
|
|
"scripts": {
|
|
"test": "bun test",
|
|
"test:coverage": "bun test --coverage",
|
|
"test:report": "bun run scripts/test-report.ts",
|
|
"lint": "biome check .",
|
|
"format": "biome check --write .",
|
|
"postinstall": "bun2nix -o bun.nix"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.5.3",
|
|
"bun-types": "latest",
|
|
"bun2nix": "^2.1.2",
|
|
"fast-xml-parser": "^5.10.1"
|
|
}
|
|
}
|