2017-06-08 12:31:25 +03:00
|
|
|
module.exports = {
|
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
'<rootDir>/node_modules/',
|
|
|
|
'<rootDir>/tests/',
|
|
|
|
'<rootDir>/config/',
|
|
|
|
],
|
|
|
|
collectCoverageFrom: ['src/**/*.js'],
|
2023-01-19 18:14:15 +03:00
|
|
|
moduleDirectories: ['src', 'vendor', 'node_modules'],
|
2018-09-04 14:18:45 +03:00
|
|
|
moduleFileExtensions: ['js', 'json'],
|
2017-06-08 12:31:25 +03:00
|
|
|
moduleNameMapper: {
|
|
|
|
// Alias tests for tests to be able to import helpers.
|
|
|
|
'^tests/(.*)$': '<rootDir>/tests/$1',
|
|
|
|
},
|
2019-06-23 10:32:10 +03:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
|
2017-06-08 12:31:25 +03:00
|
|
|
testPathIgnorePatterns: [
|
|
|
|
'<rootDir>/node_modules/',
|
|
|
|
'<rootDir>/tests/fixtures/',
|
|
|
|
'<rootDir>/(bin|coverage|dist|docs|src)/',
|
2023-01-19 18:14:15 +03:00
|
|
|
'<rootDir>/vendor/',
|
2020-07-17 13:26:19 +03:00
|
|
|
'<rootDir>/web-ext/',
|
2017-06-08 12:31:25 +03:00
|
|
|
],
|
|
|
|
testMatch: [
|
|
|
|
'<rootDir>/**/[Tt]est(*).js?(x)',
|
|
|
|
'<rootDir>/**/__tests__/**/*.js?(x)',
|
|
|
|
],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.js$': 'babel-jest',
|
2022-05-03 12:04:16 +03:00
|
|
|
'^.+\\.txt$': '<rootDir>/tests/jest-raw-loader.js',
|
2017-06-08 12:31:25 +03:00
|
|
|
},
|
2018-09-04 14:18:45 +03:00
|
|
|
transformIgnorePatterns: ['<rootDir>/node_modules/'],
|
2017-06-08 12:31:25 +03:00
|
|
|
testEnvironment: 'node',
|
|
|
|
verbose: false,
|
|
|
|
};
|