forked from dinerojs/dinero.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.base.ts
More file actions
26 lines (26 loc) · 781 Bytes
/
jest.base.ts
File metadata and controls
26 lines (26 loc) · 781 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
26
export default {
rootDir: './',
clearMocks: true,
coverageDirectory: 'coverage',
testEnvironment: 'node',
testPathIgnorePatterns: ['node_modules/', 'dist/'],
coveragePathIgnorePatterns: ['node_modules/', 'dist/', 'test/'],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
globals: {
__DEV__: true,
__TEST__: true,
},
// This module mapper is for the Jest configurations in the `packages` folders
// It is overridden by the top-level Jest configuration
moduleNameMapper: {
'^test-utils$': '<rootDir>/../../test/utils/',
'^@dinero.js/(.*)$': '<rootDir>/../$1/src/',
'^dinero.js$': '<rootDir>/../dinero.js/src/',
},
transform: {
'\\.ts': ['babel-jest', { rootMode: 'upward' }],
},
};