forked from sombochea/verdaccio-ui
22 lines
939 B
JavaScript
22 lines
939 B
JavaScript
|
const { defaults } = require('jest-config');
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'verdaccio-ui-jest',
|
||
|
verbose: true,
|
||
|
collectCoverage: true,
|
||
|
testEnvironment: 'jest-environment-jsdom-global',
|
||
|
moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts', 'tsx'],
|
||
|
testURL: 'http://localhost',
|
||
|
rootDir: '..',
|
||
|
setupFiles: ['<rootDir>/jest/setup.ts'],
|
||
|
transformIgnorePatterns: ['<rootDir>/node_modules/(?!react-syntax-highlighter)'],
|
||
|
modulePathIgnorePatterns: ['<rootDir>/coverage', '<rootDir>/scripts', '<rootDir>/.circleci', '<rootDir>/tools', '<rootDir>/build', '<rootDir>/.vscode/'],
|
||
|
snapshotSerializers: ['enzyme-to-json/serializer', 'jest-emotion'],
|
||
|
moduleNameMapper: {
|
||
|
'\\.(s?css)$': '<rootDir>/node_modules/identity-obj-proxy',
|
||
|
'github-markdown-css': '<rootDir>/node_modules/identity-obj-proxy',
|
||
|
'\\.(png)$': '<rootDir>/node_modules/identity-obj-proxy',
|
||
|
'\\.(svg)$': '<rootDir>/jest/unit/empty.ts',
|
||
|
},
|
||
|
};
|