1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00
verdaccio/jest.config.js

32 lines
854 B
JavaScript
Raw Normal View History

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