fix failing test

This commit is contained in:
Sudhanshu Gautam 2021-03-21 18:56:05 +05:30
parent 7cdb5206af
commit 3fa4a871fc
5 changed files with 14 additions and 10 deletions

View file

@ -7,6 +7,8 @@ module.exports = {
// using ts-jest
transform: {
'^.+\\.tsx?$': 'ts-jest',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'jest-transform-stub',
},
// Runs special logic, such as cleaning up components
@ -24,7 +26,6 @@ module.exports = {
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/fileMocks.js',
'^.+.(png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
},
};