/* eslint comma-dangle: 0 */ module.exports = { name: 'verdaccio-unit-jest', verbose: true, collectCoverage: true, testEnvironment: 'jest-environment-jsdom-global', testURL: 'http://localhost', testRegex: '(test/unit/webui/.*\\.spec)\\.js', setupFiles: [ './test/unit/setup.js' ], // Some unit tests rely on data folders that look like packages. This confuses jest-hast-map // when it tries to scan for package.json files. modulePathIgnorePatterns: [ '/test/unit/partials/mock-store/.*/package.json', '/test/functional/store/.*/package.json', '/test/unit/partials/store/.*/package.json', '/coverage', '/docs', '/debug', '/scripts', '/.circleci', '/tools', '/wiki', '/systemd', '/flow-typed', 'test/unit/partials/mock-store/.*/package.json', '/test/functional/store/.*/package.json', '/build', '/.vscode/', ], testPathIgnorePatterns: [ '__snapshots__', '/build', ], coveragePathIgnorePatterns: [ 'node_modules', 'fixtures', '/src/api/debug', '/test', ], moduleNameMapper: { '\\.(s?css)$': '/node_modules/identity-obj-proxy', 'github-markdown-css': '/node_modules/identity-obj-proxy', '\\.(png)$': '/node_modules/identity-obj-proxy', '\\.(svg)$': '/test/unit/empty.js' }, transformIgnorePatterns: [ '/node_modules/(?!react-syntax-highlighter)' ] };