module.exports = { name: 'verdaccio-ui-jest', verbose: true, collectCoverage: true, testEnvironment: 'jest-environment-jsdom-global', moduleFileExtensions: ['js', 'ts', 'tsx'], testURL: 'http://localhost', rootDir: '..', setupFiles: ['/test/setup.js'], transformIgnorePatterns: ['/node_modules/(?!react-syntax-highlighter)'], modulePathIgnorePatterns: ['/coverage', '/scripts', '/.circleci', '/tools', '/build', '/.vscode/'], snapshotSerializers: ['enzyme-to-json/serializer', 'jest-emotion'], 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.ts', }, }; // module.exports = { // name: 'verdaccio-unit-jest', // verbose: true, // collectCoverage: true, // testEnvironment: 'jest-environment-jsdom-global', // testURL: 'http://localhost', // testRegex: '../src/components/CopyToClipBoard/CopyToClipBoard.test.tsx', // setupFiles: ['./setup.ts'], // // 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: ['/coverage', '/scripts', '/.circleci', '/tools', '/build', '/.vscode/'], // // testPathIgnorePatterns: ['__snapshots__', '/build'], // snapshotSerializers: ['enzyme-to-json/serializer', 'jest-emotion'], // // coveragePathIgnorePatterns: ['node_modules', 'fixtures', '/src/api/debug', '/test'], // // transformIgnorePatterns: ['/node_modules/(?!react-syntax-highlighter)'], // };