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

30 lines
822 B
JavaScript

/* eslint comma-dangle: 0 */
module.exports = {
'name': 'verdaccio-jest',
'verbose': true,
'collectCoverage': true,
'coveragePathIgnorePatterns': [
'node_modules',
'fixtures'
],
'testRegex': '(/test/unit.*\\.spec|test/functional.*\\.func|/test/webui/.*\\.spec)\\.js',
// 'testRegex': '(test/functional.*\\.func)\\.js'
'setupFiles': [
'./test/webui/global.js'
],
'modulePathIgnorePatterns': [
'global.js'
],
'testPathIgnorePatterns': [
'__snapshots__'
],
'moduleNameMapper': {
'\\.(scss)$': '<rootDir>/node_modules/identity-obj-proxy',
'github-markdown-css': '<rootDir>/node_modules/identity-obj-proxy',
'\\.(png)$': '<rootDir>/node_modules/identity-obj-proxy'
},
'transformIgnorePatterns': [
'<rootDir>/node_modules/(?!react-syntax-highlighter)'
]
};