forked from radixdlt/radixdlt-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.base.js
More file actions
35 lines (34 loc) · 765 Bytes
/
jest.config.base.js
File metadata and controls
35 lines (34 loc) · 765 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
27
28
29
30
31
32
33
34
35
const config = {
transform: {
'^.+\\.ts$': 'ts-jest',
},
moduleDirectories: [
'packages/*/src',
'<rootDir>/includes',
'<rootDir>/node_modules',
'<rootDir>/*/node_modules',
],
moduleFileExtensions: ['js', 'ts', 'node', 'json'],
moduleNameMapper: {
'^@radix-javascript/(.*)$': '<rootDir>/packages/$1/src/index.ts',
'cross-fetch': 'jest-fetch-mock',
},
globals: {
'ts-jest': {
babelConfig: true,
tsconfig: './tsconfig.test.json',
},
},
testURL: 'http://localhost',
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/packages/*/src/**/*.{ts,js}',
'!**/node_modules/**',
],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
modulePathIgnorePatterns: [],
}
module.exports = config