0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/jest.config.js

50 lines
1.4 KiB
JavaScript
Raw Normal View History

2017-11-01 11:47:20 -05:00
/* eslint comma-dangle: 0 */
module.exports = {
reporters: ['default', ['jest-junit', { outputDirectory: 'reports' }]],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testEnvironmentOptions: {
url: 'http://localhost',
},
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 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
],
testPathIgnorePatterns: ['__snapshots__', '<rootDir>/build'],
coveragePathIgnorePatterns: [
'node_modules',
'fixtures',
'<rootDir>/src/api/debug',
'<rootDir>/test',
],
coverageReporters: ['text-summary', 'lcov', 'html'],
coverageThreshold: {
global: {
lines: 70,
functions: 75,
branches: 63,
statements: 70,
},
},
2017-11-01 11:47:20 -05:00
};