[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:
parent
33cd9ac631
commit
f29443d8b6
|
@ -0,0 +1,11 @@
|
|||
## Link Issue
|
||||
|
||||
<-- Link issue !-->
|
||||
|
||||
## Description
|
||||
|
||||
<-- Description of issue !-->
|
||||
|
||||
## Test or Screensshots
|
||||
|
||||
<-- How test this change !-->
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue