[Blockchain Watcher] Feature-813/fix-coverage-report (#815)

* Fix coverage report

* Run prettier

* Rollback global coverage value

* Set global coverage value to 55

* Add github PR template

* Run prettier

* Rename github template file

---------

Co-authored-by: Julian Merlo <julianmerlo@MacBook-Pro-de-Julian.local>
This commit is contained in:
Julian 2023-11-23 13:23:27 -03:00 committed by GitHub
parent 33cd9ac631
commit f29443d8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 8 deletions

View File

@ -0,0 +1,11 @@
## Link Issue
<-- Link issue !-->
## Description
<-- Description of issue !-->
## Test or Screensshots
<-- How test this change !-->

View File

@ -1,15 +1,18 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
collectCoverageFrom: [
"./src/domain",
"./src/infrastructure/mappers",
"./src/infrastructure/repositories",
],
moduleFileExtensions: ["js", "json", "ts"],
roots: ["test", "src"],
testRegex: ".*\\.test\\.ts$",
transform: {
"^.+\\.(t|j)s$": "ts-jest",
},
collectCoverage: true,
collectCoverageFrom: ["**/*.(t|j)s"],
coveragePathIgnorePatterns: ["node_modules", "test"],
coverageDirectory: "./coverage",
coverageThreshold: {
global: {
lines: 85,
lines: 55,
},
},
};

View File

@ -9,6 +9,7 @@
"test:coverage": "jest --collectCoverage=true",
"build": "tsc",
"dev": "ts-node src/start.ts",
"dev:debug": "ts-node src/start.ts start --debug --watch",
"prettier": "prettier --write ."
},
"author": "chase-45",