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
11 lines
174 B
JSON
11 lines
174 B
JSON
{
|
|
"semi": true,
|
|
"singleQuote": true,
|
|
"tabWidth": 2,
|
|
"useTabs": false,
|
|
"trailingComma": "none",
|
|
"arrowParens": "avoid",
|
|
"printWidth": 100,
|
|
"endOfLine": "lf"
|
|
}
|