forked from SmartTokenLabs/token-negotiator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
40 lines (40 loc) · 1 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
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
"^.+\\.(js|jsx)$": '<rootDir>/test/jest/jest.transform.js'
},
setupFilesAfterEnv: ['<rootDir>/test/jest/jest.setup.js'],
reporters: ['default', 'jest-junit'],
roots: ['<rootDir>/src'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
verbose: true,
testTimeout: 300000,
collectCoverage: true,
collectCoverageFrom: [
'src/**',
'!src/vendor/**'
],
coverageDirectory: '<rootDir>/reports/coverage/',
coverageThreshold: {
global: {
lines: 30
}
},
testPathIgnorePatterns: [
"dist"
],
testEnvironment: 'jsdom',
setupFilesAfterEnv: [
"./config/jest-setup.js"
],
"globals": {
"window": {},
"localStorage": {}
},
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/test/jest/__mocks__/mock.js'
},
transformIgnorePatterns: ['<rootDir>/node_modules/(?!@toruslabs/torus-embed)/']
};