forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
30 lines (30 loc) · 1.08 KB
/
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
/*eslint-env node*/
module.exports = {
verbose: false,
collectCoverageFrom: [
'tests/js/spec/**/*.{js,jsx}',
'src/sentry/static/sentry/app/**/*.{js,jsx}',
],
coverageReporters: ['html', 'lcov', 'cobertura'],
coverageDirectory: '.artifacts/coverage/',
snapshotSerializers: ['enzyme-to-json/serializer'],
moduleNameMapper: {
'^app-test/(.*)': '<rootDir>/tests/js/$1',
'\\.(css|less|png)$': '<rootDir>/tests/js/helpers/importStyleMock.js',
'\\.(svg)$': '<rootDir>/tests/js/helpers/svgMock.js',
'integration-docs-platforms':
'<rootDir>/tests/fixtures/integration-docs/_platforms.json',
},
modulePaths: ['<rootDir>/src/sentry/static/sentry'],
setupFiles: [
'<rootDir>/tests/js/throw-on-react-error.js',
'<rootDir>/tests/js/setup.js',
],
setupFilesAfterEnv: ['<rootDir>/tests/js/setupFramework.js'],
testMatch: ['<rootDir>/tests/js/**/?(*.)(spec|test).js?(x)'],
testPathIgnorePatterns: ['<rootDir>/tests/sentry/lang/javascript/'],
unmockedModulePathPatterns: [
'<rootDir>/node_modules/react',
'<rootDir>/node_modules/reflux',
],
};