Add support for *.jpeg file extension. (#624)

This commit is contained in:
Marek Suscak
2016-09-11 14:48:58 +02:00
committed by Ville Immonen
parent 66702915e6
commit 2c6f1da4d0
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => {
const config = {
moduleFileExtensions: ['jsx', 'js', 'json'],
moduleNameMapper: {
'^.+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
'^.+\\.css$': resolve('config/jest/CSSStub.js')
},
scriptPreprocessor: resolve('config/jest/transform.js'),