Back to all reviewers

Manage testing dependencies

nestjs/nest
Based on 2 comments
Json

Properly manage testing-related dependencies by placing them in devDependencies and regularly auditing them to remove redundant tools. Test-only packages should never appear in regular dependencies, and outdated testing libraries should be removed when newer alternatives are already present in the project.

Testing Json

Reviewer Prompt

Properly manage testing-related dependencies by placing them in devDependencies and regularly auditing them to remove redundant tools. Test-only packages should never appear in regular dependencies, and outdated testing libraries should be removed when newer alternatives are already present in the project.

Examples:

  • Add testing frameworks like nunjucks in devDependencies: ```diff “mysql”: “2.18.1”, “nats”: “1.4.9”, “nodemon”: “2.0.4”,
    • “nunjucks”: “^3.2.1”, ```
  • Remove redundant testing tools: ```diff “imports-loader”: “^0.7.0”,
    • “istanbul”: “^0.4.5”, ``` (When using nyc which already depends on istanbul-lib-coverage)

Keep your testing infrastructure lean by regularly reviewing dependencies to ensure they’re necessary, properly placed, and up-to-date.

2
Comments Analyzed
Json
Primary Language
Testing
Category

Source Discussions