2017-11-01 11:47:20 -05:00
|
|
|
/* eslint comma-dangle: 0 */
|
|
|
|
|
|
|
|
module.exports = {
|
2022-01-09 14:51:50 -05:00
|
|
|
reporters: ['default', ['jest-junit', { outputDirectory: 'reports' }]],
|
2019-07-16 01:40:01 -05:00
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
2023-01-18 18:09:24 -05:00
|
|
|
testEnvironmentOptions: {
|
|
|
|
url: 'http://localhost',
|
|
|
|
},
|
2019-07-16 01:40:01 -05:00
|
|
|
testRegex: '(test/unit.*\\.spec)\\.ts',
|
|
|
|
// Some unit tests rely on data folders that look like packages. This confuses jest-hast-map
|
|
|
|
// when it tries to scan for package.json files.
|
|
|
|
transform: {
|
2022-01-09 14:51:50 -05:00
|
|
|
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
|
2019-07-16 01:40:01 -05:00
|
|
|
},
|
2018-02-19 13:29:14 -05:00
|
|
|
modulePathIgnorePatterns: [
|
2018-06-27 01:52:52 -05:00
|
|
|
'<rootDir>/test/unit/partials/mock-store/.*/package.json',
|
|
|
|
'<rootDir>/test/functional/store/.*/package.json',
|
|
|
|
'<rootDir>/test/unit/partials/store/.*/package.json',
|
|
|
|
'<rootDir>/coverage',
|
|
|
|
'<rootDir>/docs',
|
|
|
|
'<rootDir>/debug',
|
|
|
|
'<rootDir>/scripts',
|
|
|
|
'<rootDir>/.circleci',
|
|
|
|
'<rootDir>/tools',
|
|
|
|
'<rootDir>/wiki',
|
|
|
|
'<rootDir>/systemd',
|
|
|
|
'<rootDir>/flow-typed',
|
|
|
|
'<rootDir>test/unit/partials/mock-store/.*/package.json',
|
|
|
|
'<rootDir>/test/functional/store/.*/package.json',
|
|
|
|
'<rootDir>/build',
|
|
|
|
'<rootDir>/.vscode/',
|
2017-11-28 11:05:58 -05:00
|
|
|
],
|
2022-01-09 14:51:50 -05:00
|
|
|
testPathIgnorePatterns: ['__snapshots__', '<rootDir>/build'],
|
2023-01-18 16:49:28 -05:00
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
'node_modules',
|
|
|
|
'fixtures',
|
|
|
|
'<rootDir>/src/api/debug',
|
|
|
|
'<rootDir>/test',
|
|
|
|
],
|
2023-01-28 08:39:37 -05:00
|
|
|
coverageReporters: ['text-summary', 'lcov', 'html'],
|
|
|
|
coverageThreshold: {
|
|
|
|
global: {
|
2023-02-09 15:42:24 -05:00
|
|
|
lines: 70,
|
|
|
|
functions: 75,
|
|
|
|
branches: 63,
|
|
|
|
statements: 70,
|
2023-01-28 08:39:37 -05:00
|
|
|
},
|
|
|
|
},
|
2017-11-01 11:47:20 -05:00
|
|
|
};
|