-
Notifications
You must be signed in to change notification settings - Fork 144
/
jest.config.js
33 lines (33 loc) · 958 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
module.exports = {
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/tests/',
'<rootDir>/config/',
],
collectCoverageFrom: ['src/**/*.js'],
moduleDirectories: ['src', 'vendor', 'node_modules'],
moduleFileExtensions: ['js', 'json'],
moduleNameMapper: {
// Alias tests for tests to be able to import helpers.
'^tests/(.*)$': '<rootDir>/tests/$1',
},
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/tests/fixtures/',
'<rootDir>/(bin|coverage|dist|docs|src)/',
'<rootDir>/vendor/',
'<rootDir>/web-ext/',
],
testMatch: [
'<rootDir>/**/[Tt]est(*).js?(x)',
'<rootDir>/**/__tests__/**/*.js?(x)',
],
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.txt$': '<rootDir>/tests/jest-raw-loader.js',
},
transformIgnorePatterns: ['<rootDir>/node_modules/'],
testEnvironment: 'node',
verbose: false,
};