0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00
verdaccio/jest.config.unit.js

31 lines
782 B
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,
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/unit/webui/.*\\.spec)\\.js',
2018-02-19 19:29:14 +01:00
setupFiles: [
'./test/unit/setup.js'
2017-11-28 21:35:58 +05:30
],
2018-02-19 19:29:14 +01:00
modulePathIgnorePatterns: [
'setup.js'
2017-11-28 21:35:58 +05:30
],
2018-02-19 19:29:14 +01:00
testPathIgnorePatterns: [
2017-12-20 09:40:53 +05:30
'__snapshots__'
],
2018-02-19 19:29:14 +01:00
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',
'\\.(png)$': '<rootDir>/node_modules/identity-obj-proxy'
2017-12-02 00:34:01 +05:30
},
2018-02-19 19:29:14 +01:00
transformIgnorePatterns: [
2017-12-02 00:34:01 +05:30
'<rootDir>/node_modules/(?!react-syntax-highlighter)'
]
2017-11-01 17:47:20 +01:00
};