forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (30 loc) · 1012 Bytes
/
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
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: 'true'
}
]
},
testRegex: '__tests__/(.+).(test|spec).tsx?',
testPathIgnorePatterns: ['<rootDir>/src/__tests__(.+)__snapshots__'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
globalSetup: '<rootDir>globalSetup.ts',
setupFiles: ['<rootDir>setupJest.ts'],
testEnvironment: 'jsdom',
globals: {
__API_URL__: '/api/v1',
__FEEDBACK_FORM_URL__: 'https://forms.gle/f3tTSrZ8wPj3sHTA7',
__API_DOCS_URL__: 'https://marquezproject.github.io/marquez/openapi.html',
__TEMP_ACTOR_STR__: 'me'
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__tests__/__mocks__/fileMock.js',
'\\.(css|less)$': 'identity-obj-proxy',
"d3": "<rootDir>/node_modules/d3/dist/d3.min.js",
"^d3-(.*)$": "<rootDir>/node_modules/d3-$1/dist/d3-$1.min.js"
}
}