forked from Opentrons/opentrons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
50 lines (49 loc) · 1.23 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
'use strict'
module.exports = {
setupFilesAfterEnv: [
'<rootDir>/scripts/setup-enzyme.js',
'<rootDir>/scripts/setup-global-mocks.js',
],
globals: {
__webpack_public_path__: '/',
},
moduleNameMapper: {
'\\.(css)$': 'identity-obj-proxy',
},
transform: {
'^.+\\.(js|ts|tsx)$': 'babel-jest',
'\\.(jpg|png|gif|svg|woff|woff2|webm)$':
'@opentrons/components/src/__mocks__/file.js',
},
modulePathIgnorePatterns: [
'/shared-data/python/.*',
'/api/.*',
'/robot-server/.*',
'/update-server/.*',
],
transformIgnorePatterns: ['/node_modules/(?!@opentrons/)'],
collectCoverageFrom: [
'app/src/**/*.js',
'app-shell/src/**/*.js',
'components/src/**/*.js',
'discovery-client/src/**/*.ts',
'labware-library/src/**/*.js',
'protocol-designer/src/**/*.js',
'shared-data/js/**/*.js',
'!**/__mocks__/**',
'!**/__tests__/**',
'!**/__fixtures__/**',
'!**/__utils__/**',
'!**/test/**',
'!**/scripts/**',
],
testPathIgnorePatterns: [
'cypress/',
'/node_modules/',
'.*.d.ts',
'.*.flow.js',
],
coverageReporters: ['lcov', 'text-summary'],
snapshotSerializers: ['enzyme-to-json/serializer'],
watchPathIgnorePatterns: ['/node_modules/'],
}