forked from KILTprotocol/sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
54 lines (54 loc) · 1.55 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
clearMocks: true,
runner: 'groups',
// Parachain block time is 12s
testTimeout: 15000,
setupFilesAfterEnv: ['../jest-setup/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/**',
'!**/kilt/*',
'!**/blockchainApiConnection/*',
'!**/types/**/*',
'!**/SDKErrors.ts',
'!utils/src/json-schema/*',
'!testing/**',
// TODO: write tests for these files and remove here
'!**/*.chain.ts',
'!did/src/index.types.ts',
'!did/src/Did.chain.ts',
'!did/src/Did.utils.ts',
'!did/src/DemoKeystore/DemoKeystore.ts',
'!did/src/DemoKeystore/DemoKeystore.utils.ts',
'!did/src/DidDetails/DidDetails.utils.ts',
'!did/src/DidDetails/LightDidDetails.utils.ts',
'!did/src/DidDetails/FullDidDetails.utils.ts',
'!did/src/DidBatcher/DidBatchBuilder.utils.ts',
'!did/src/DidBatcher/FullDidBuilder.utils.ts',
'!did/src/DidBatcher/FullDidCreationBuilder.utils.ts',
'!did/src/DidBatcher/FullDidUpdateBuilder.utils.ts',
],
resolver: "ts-jest-resolver",
rootDir: 'packages',
coverageDirectory: 'coverage',
moduleDirectories: [
"node_modules",
"packages/*/src"
]
}