Skip to content

Commit

Permalink
chore: exclude e2e tests from coverage and code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
apsantiso committed Dec 29, 2023
1 parent 5ddc88e commit dc6d209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "NODE_ENV=test jest --no-cache --config ./test/jest-e2e.json",
"test:e2e": "NODE_ENV=test jest --config ./test/jest-e2e.json",
"test:e2e:watch": "NODE_ENV=test jest --config ./test/jest-e2e.json --watchAll",
"migrate": "NODE_ENV=development sequelize db:migrate",
"migrate:undo": "NODE_ENV=development sequelize db:migrate:undo",
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ sonar.organization=internxt

# This parameter must be set to the path of the report file produced by your coverage tool. The path can be either absolute or relative to the project root.
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar.coverage.exclusions=**/*.spec.ts, **/seeders/**, **/migrations/**
sonar.cpd.exclusions=**/*.spec.ts, **/seeders/**, **/migrations/**
sonar.coverage.exclusions=**/*.spec.ts, **/seeders/**, **/migrations/**, **/test/__e2e__/**, **/*.e2e-spec.ts
sonar.cpd.exclusions=**/*.spec.ts, **/seeders/**, **/migrations/**, **/test/__e2e__/**, **/*.e2e-spec.ts

0 comments on commit dc6d209

Please sign in to comment.