Skip to content

Commit 7acacc5

Browse files
committed
test coverage
1 parent 01306f2 commit 7acacc5

File tree

5 files changed

+723
-6
lines changed

5 files changed

+723
-6
lines changed

jest.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
testMatch: ['**/*.test.ts'],
4+
testMatch: ['**/HgraphClient.test.ts', '**/HgraphContract.test.ts'],
5+
collectCoverage: true,
6+
collectCoverageFrom: ['src/utils/**/*.{ts,tsx}'],
7+
coverageThreshold: {
8+
global: {
9+
lines: 100,
10+
functions: 100,
11+
branches: 100,
12+
statements: 100,
13+
},
14+
},
515
globals: {
616
'ts-jest': {
717
tsconfig: 'tsconfig.test.json',

0 commit comments

Comments
 (0)