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
20 lines
359 B
JSON
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"]
|
|
}
|