forked from Opentrons/opentrons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
42 lines (41 loc) · 1015 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
31
32
33
34
35
36
37
38
39
40
41
42
'use strict'
module.exports = {
setupFiles: [
'<rootDir>/scripts/setup-enzyme.js',
'<rootDir>/scripts/setup-global-mocks.js',
],
globals: {
__webpack_public_path__: '/',
},
moduleNameMapper: {
'\\.(css)$': 'identity-obj-proxy',
},
transform: {
'^.+\\.js$': 'babel-jest',
'\\.(jpg|png|gif|svg|woff|woff2)$':
'@opentrons/components/src/__mocks__/file.js',
},
transformIgnorePatterns: ['/node_modules/(?!@opentrons/)'],
collectCoverageFrom: [
'**/*.js',
'!.eslintrc.js',
'!.stylelintrc.js',
'!api/**',
'!webpack-config/**',
'!**/scripts/**',
'!components/interfaces/**',
'!components/styleguide.config.js',
'!**/node_modules/**',
'!**/__mocks__/**',
'!**/dist/**',
'!**/build/**',
'!**/webpack*',
'!**/webpack/**',
'!**/coverage/**',
'!**/test/**',
'!**/test-with-flow/**',
'!**/flow-typed/**',
],
coverageReporters: ['lcov', 'text'],
snapshotSerializers: ['enzyme-to-json/serializer'],
}