fix: jest setup

This commit is contained in:
Karol Sójko
2022-06-21 14:04:58 +02:00
parent c205ebb710
commit 1a8670cdaa
6 changed files with 182 additions and 113 deletions

26
jest.config.js Normal file
View File

@@ -0,0 +1,26 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts$',
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'/goldstackLocal/',
'/distWeb/',
'/distLambda/',
'.d.ts',
],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
};