2017-11-01 17:47:20 +01:00
|
|
|
/* eslint comma-dangle: 0 */
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
'name': 'verdaccio-jest',
|
|
|
|
'verbose': true,
|
|
|
|
'collectCoverage': true,
|
|
|
|
'coveragePathIgnorePatterns': [
|
|
|
|
'node_modules',
|
|
|
|
'fixtures'
|
|
|
|
],
|
2018-01-15 23:03:43 +01:00
|
|
|
'testEnvironment': 'jest-environment-jsdom-global',
|
2017-11-28 21:35:58 +05:30
|
|
|
'testRegex': '(/test/unit.*\\.spec|test/functional.*\\.func|/test/webui/.*\\.spec)\\.js',
|
2017-12-02 11:19:08 +01:00
|
|
|
// 'testRegex': '(test/functional.*\\.func)\\.js'
|
2017-11-28 21:35:58 +05:30
|
|
|
'setupFiles': [
|
|
|
|
'./test/webui/global.js'
|
|
|
|
],
|
|
|
|
'modulePathIgnorePatterns': [
|
|
|
|
'global.js'
|
|
|
|
],
|
2017-12-02 19:31:06 +05:30
|
|
|
'testPathIgnorePatterns': [
|
2017-12-20 09:40:53 +05:30
|
|
|
'__snapshots__'
|
2017-12-02 19:31:06 +05:30
|
|
|
],
|
2017-11-28 21:35:58 +05:30
|
|
|
'moduleNameMapper': {
|
2017-12-02 00:34:01 +05:30
|
|
|
'\\.(scss)$': '<rootDir>/node_modules/identity-obj-proxy',
|
|
|
|
'github-markdown-css': '<rootDir>/node_modules/identity-obj-proxy',
|
2017-12-03 15:44:17 +05:30
|
|
|
'\\.(png)$': '<rootDir>/node_modules/identity-obj-proxy'
|
2017-12-02 00:34:01 +05:30
|
|
|
},
|
|
|
|
'transformIgnorePatterns': [
|
|
|
|
'<rootDir>/node_modules/(?!react-syntax-highlighter)'
|
|
|
|
]
|
2017-11-01 17:47:20 +01:00
|
|
|
};
|