Skip to content

Commit

Permalink
test: update config to handle static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Sep 16, 2020
1 parent c8aeb24 commit 0de5a74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ module.exports = {
'<rootDir>/test/setupJest.js',
],
moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ],
// https://github.com/react-navigation/react-navigation/issues/7950#issuecomment-615220412
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
'\\.(css|less)$': 'identity-obj-proxy',
},
}

0 comments on commit 0de5a74

Please sign in to comment.