-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.cjs
43 lines (43 loc) · 1001 Bytes
/
jest.config.cjs
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
41
42
43
module.exports = {
'preset': 'ts-jest',
'collectCoverageFrom': [],
'coveragePathIgnorePatterns': [],
'setupFiles': [],
'setupFilesAfterEnv': [
'./setupTests.ts',
],
'testEnvironment': 'jsdom',
'testURL': 'http://localhost',
'transform': {},
'transformIgnorePatterns': [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$',
],
'modulePaths': ['src'],
'moduleNameMapper': {
'^react-native$': 'react-native-web',
},
'moduleFileExtensions': [
'web.ts',
'ts',
'web.tsx',
'tsx',
'web.js',
'js',
'web.jsx',
'jsx',
'json',
'node',
'mjs',
],
'globals': {
'ts-jest': {
'tsconfig': './tsconfig.json',
'isolatedModules': true,
},
},
'watchPlugins': [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
'testRunner': 'jest-circus/runner',
};