Fixed the jest config

This commit is contained in:
Aria Minaei 2021-08-08 10:16:33 +02:00
parent 1916747e8b
commit 3cb3bbc92c

View file

@ -5,7 +5,7 @@ module.exports = {
], ],
moduleNameMapper: { moduleNameMapper: {
...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(), ...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(),
'\\.(css)$': 'identity-obj-proxy', '\\.(css|svg|png)$': 'identity-obj-proxy',
'lodash-es/(.*)': 'lodash/$1', 'lodash-es/(.*)': 'lodash/$1',
'react-use/esm/(.*)': 'react-use/lib/$1', 'react-use/esm/(.*)': 'react-use/lib/$1',
'lodash-es': 'lodash', 'lodash-es': 'lodash',