forked from dhiway/cord.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
42 lines (42 loc) · 1014 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
clearMocks: true,
runner: 'groups',
testTimeout: 10000,
setupFilesAfterEnv: ['../testingTools/setup.js'],
transformIgnorePatterns:['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)'],
coverageThreshold: {
global: {
branches: 70,
functions: 80,
lines: 80,
statements: 80,
},
},
collectCoverageFrom: [
'**/*/src/**/*.ts',
'!**/index.ts',
'!**/__integrationtests__/**',
'!**/__mocks__/**',
'!**/__tests__/**',
'!**/lib/**',
'!**/test/**',
'!**/cord/*',
'!**/chainApiConnection/*',
'!**/types/**/*',
'!**/SDKErrors.ts',
'!utils/src/json-schema/*',
],
resolver: "ts-jest-resolver",
rootDir: 'packages',
coverageDirectory: 'coverage',
moduleDirectories: [
"node_modules",
"packages/*/src",
"packages/**"
],
"modulePathIgnorePatterns": [
"<rootDir>/cord-utils/src/chainApiConnection/__mocks__/"
],
}