0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/jest.config.js

40 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-11-01 17:47:20 +01:00
/* eslint comma-dangle: 0 */
module.exports = {
name: 'verdaccio-unit-jest',
2018-02-19 19:29:14 +01:00
verbose: true,
collectCoverage: true,
2018-06-30 12:44:03 +02:00
testURL: 'http://localhost',
testRegex: '(test/unit.*\\.spec|test/unit/webui/.*\\.spec)\\.js',
2018-06-27 08:52:52 +02:00
// 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.
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 21:35:58 +05:30
],
2018-02-19 19:29:14 +01:00
testPathIgnorePatterns: [
2018-06-27 08:52:52 +02:00
'__snapshots__',
'<rootDir>/build',
2018-06-27 08:52:52 +02:00
],
coveragePathIgnorePatterns: [
'node_modules',
'fixtures',
'<rootDir>/src/api/debug',
'<rootDir>/test',
2017-12-02 00:34:01 +05:30
]
2017-11-01 17:47:20 +01:00
};