forked from fivebinaries/coin-selection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
28 lines (28 loc) · 856 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
rootDir: '.',
resetMocks: true,
testEnvironment: 'node',
bail: true,
moduleFileExtensions: ['ts', 'js'],
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/'],
testMatch: ['<rootDir>/tests/**/*.test.ts'],
coverageReporters: ['json-summary', 'lcov', 'text', 'text-summary'],
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc-node/jest'],
},
moduleNameMapper: {
// Workaround for an error "Cannot find module @emurgo/cardano-serialization-lib-browser"
"@emurgo/cardano-serialization-lib-browser": "@emurgo/cardano-serialization-lib-nodejs",
},
coverageThreshold: {
// global: {
// branches: 37,
// functions: 28,
// lines: 40,
// statements: 40,
// },
},
};