1 Commits
Author SHA1 Message Date
Planner 67563bb6d0 feat: Phase 1 — Add test coverage, linting, and code quality tooling (c8, ESLint, Prettier)
Node tests / test (push) Has been cancelled
## 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