diff --git a/blockchain-watcher/.github/pull-request-template.md b/blockchain-watcher/.github/pull-request-template.md new file mode 100644 index 00000000..2b276935 --- /dev/null +++ b/blockchain-watcher/.github/pull-request-template.md @@ -0,0 +1,11 @@ +## Link Issue + +<-- Link issue !--> + +## Description + +<-- Description of issue !--> + +## Test or Screensshots + +<-- How test this change !--> diff --git a/blockchain-watcher/jest.config.js b/blockchain-watcher/jest.config.js index 0dc2dbaf..0397fe2a 100644 --- a/blockchain-watcher/jest.config.js +++ b/blockchain-watcher/jest.config.js @@ -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, }, }, }; diff --git a/blockchain-watcher/package.json b/blockchain-watcher/package.json index efdb6d80..77cfe3f8 100644 --- a/blockchain-watcher/package.json +++ b/blockchain-watcher/package.json @@ -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",