Files
ai-news-writer/.nycrc.json
T
Planner 67563bb6d0
Node tests / test (push) Has been cancelled
feat: Phase 1 — Add test coverage, linting, and code quality tooling (c8, ESLint, Prettier)
## Summary
- Install c8 (coverage), ESLint, and Prettier as devDependencies
- Add .eslintrc.json with Node.js/async-safe rules
- Add .prettierrc.json for code formatting consistency
- Add .nycrc.json with 80% coverage targets for statements/lines/functions, 75% for branches
- Update npm test script to use c8 for coverage reporting (generates HTML + text reports)
- Add lint, lint:fix, and format npm scripts

## Baseline Coverage
Initial run shows 26.4% line coverage, well below 80% target. Modules with 0% coverage:
- src/index.js (main entry point)
- src/crawler/* (RSS, scraper, X/Twitter crawlers)
- src/publisher/wordpress.js (WordPress integration)
- src/listener/* (RSS listener)
- src/writer/ai.js (AI news writing)

These are high-risk modules that need test expansion per BIT-2861.

Implements BIT-2837 Phase 1 per plan.
Paperclip-Run-Id: fb08becb-e019-4cb3-ae50-fb72a4b11745
2026-04-12 11:06:28 +00:00

20 lines
359 B
JSON

{
"all": true,
"check-coverage": true,
"lines": 80,
"statements": 80,
"functions": 80,
"branches": 75,
"reporter": ["text", "html", "lcov"],
"report-dir": "./coverage",
"temp-dir": "./.nyc_output",
"exclude": [
"node_modules/**",
"coverage/**",
"**/*.test.js",
"dist/**",
".nyc_output/**"
],
"extension": [".js"]
}