mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-07-20 19:48:18 -06:00
PR-264673: fixing the conflict with cypress and jest.
This commit is contained in:
@ -6,12 +6,12 @@ const aliases = pathsToModuleNameMapper(compilerOptions.paths, {
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '\\.cy.(js|jsx|ts|tsx)$'],
|
||||
testEnvironment: 'jsdom',
|
||||
moduleNameMapper: {
|
||||
...aliases,
|
||||
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileMock.ts',
|
||||
'\\.(css|sass|scss|less)$': 'identity-obj-proxy'
|
||||
},
|
||||
};
|
||||
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '\\.cy.(js|jsx|ts|tsx)$'],
|
||||
testEnvironment: 'jsdom',
|
||||
moduleNameMapper: {
|
||||
...aliases,
|
||||
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileMock.ts',
|
||||
'\\.(css|sass|scss|less)$': 'identity-obj-proxy'
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user