Skip to content

Commit

Permalink
Merge pull request facebook#27 from lukaszgolder/fix-jest-configuration
Browse files Browse the repository at this point in the history
fix jest moduleNameMapper to handle other styling libraries
  • Loading branch information
kitze committed Nov 9, 2016
2 parents 97c1018 + 5dae1b0 commit f2b93f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
moduleFileExtensions: ['jsx', 'js', 'json'],
moduleNameMapper: {
'^.+\\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
'^.+\\.css$': resolve('config/jest/CSSStub.js')
'^.+\\.(css|less|scss|sass|styl)$': resolve('config/jest/CSSStub.js')
},
setupFiles: [resolve('config/polyfills.js')],
setupTestFrameworkScriptFile: setupTestsFile,
Expand Down

0 comments on commit f2b93f5

Please sign in to comment.