-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 715 Bytes
/
jest.config.js
File metadata and controls
25 lines (25 loc) · 715 Bytes
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
module.exports = {
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.js', '**/?(*.)+(spec|test).js'],
testPathIgnorePatterns: ['/tests-examples/', 'client/src/App.test.js'],
moduleNameMapper: {
'^url-join$': '<rootDir>/__mocks__/url-join.js',
'^@scure/bip32$': '<rootDir>/__mocks__/scureBip32.js',
},
collectCoverageFrom: [
'**/*.{js,jsx}',
'!**/node_modules/**',
'!**/client/**',
'!**/coverage/**',
'!**/migrations/**',
'!**/jobs/**',
'!**/dev/**',
],
coverageDirectory: 'coverage',
setupFilesAfterEnv: ['<rootDir>/test/setup.js'],
testTimeout: 10000,
maxWorkers: 1,
workerIdleMemoryLimit: '512MB',
forceExit: true,
detectOpenHandles: true,
};