Skip to content

Commit 46cf28a

Browse files
committed
chore: add .env.example and add coverage threshold config
1 parent e4f201e commit 46cf28a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HELLO=WORLD

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ module.exports = {
1111
'<rootDir>/src/**/*.{ts,js}',
1212
'!<rootDir>/src/index.{ts,js}'
1313
],
14+
coverageThreshold: {
15+
global: {
16+
branches: 90,
17+
functions: 90,
18+
lines: 90,
19+
statements: 90,
20+
},
21+
},
1422
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(j|t)sx?$',
1523
clearMocks: true
1624
};

0 commit comments

Comments
 (0)