2017-11-01 17:47:20 +01:00
|
|
|
/* eslint comma-dangle: 0 */
|
|
|
|
|
|
|
|
module.exports = {
|
2018-06-17 16:00:36 +02:00
|
|
|
name: 'verdaccio-unit-jest',
|
2018-02-19 19:29:14 +01:00
|
|
|
verbose: true,
|
|
|
|
collectCoverage: true,
|
2019-10-05 16:29:50 +02:00
|
|
|
reporters: ["default", ["jest-junit", { outputDirectory: 'reports' }]],
|
2019-07-16 08:40:01 +02:00
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
2018-06-30 12:44:03 +02:00
|
|
|
testURL: 'http://localhost',
|
2019-07-16 08:40:01 +02: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: {
|
|
|
|
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
|
|
|
|
},
|
2018-02-19 19:29:14 +01:00
|
|
|
modulePathIgnorePatterns: [
|
2018-06-27 08:52:52 +02: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 17:05:58 +01:00
|
|
|
],
|
2018-02-19 19:29:14 +01:00
|
|
|
testPathIgnorePatterns: [
|
2018-06-27 08:52:52 +02:00
|
|
|
'__snapshots__',
|
2018-06-27 21:19:48 +02:00
|
|
|
'<rootDir>/build',
|
2018-06-27 08:52:52 +02:00
|
|
|
],
|
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
'node_modules',
|
2018-06-27 21:19:48 +02:00
|
|
|
'fixtures',
|
2018-09-22 12:54:21 +02:00
|
|
|
'<rootDir>/src/api/debug',
|
2018-06-27 21:19:48 +02:00
|
|
|
'<rootDir>/test',
|
2017-12-01 20:04:01 +01:00
|
|
|
]
|
2017-11-01 17:47:20 +01:00
|
|
|
};
|