forked from facebookarchive/reactor-extension-facebook-pixel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
38 lines (35 loc) · 876 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
'use strict';
// jest.config.js
module.exports = {
projects: [
{
displayName: 'test views',
setupFilesAfterEnv: ['./src/view/jest.setup.js'],
moduleNameMapper: {
'\\.(css|styl)$': '<rootDir>/src/view/__tests_helpers__/styleMock.js'
},
modulePathIgnorePatterns: ['<rootDir>/src/lib/'],
transform: {
'^.+\\.[t|j]sx?$': 'babel-jest'
}
},
{
displayName: 'test library modules',
testEnvironment: 'node',
modulePathIgnorePatterns: ['<rootDir>/src/view/']
},
{
displayName: 'lint',
runner: 'jest-runner-eslint',
testMatch: ['<rootDir>/src/**']
}
],
collectCoverageFrom: [
'./src/**/*.{js,jsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/__tests__/**',
'!**/__tests_helpers__/**'
],
coverageReporters: ['lcov', 'text', 'html']
};