mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
b113aa3a55
still pending unit config file
30 lines
782 B
JavaScript
30 lines
782 B
JavaScript
/* eslint comma-dangle: 0 */
|
|
|
|
module.exports = {
|
|
name: 'verdaccio-unit-jest',
|
|
verbose: true,
|
|
collectCoverage: true,
|
|
coveragePathIgnorePatterns: [
|
|
'node_modules',
|
|
'fixtures'
|
|
],
|
|
testEnvironment: 'jest-environment-jsdom-global',
|
|
testRegex: '(test/unit.*\\.spec|test/unit/webui/.*\\.spec)\\.js',
|
|
setupFiles: [
|
|
'./test/unit/setup.js'
|
|
],
|
|
modulePathIgnorePatterns: [
|
|
'setup.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)'
|
|
]
|
|
};
|