feat(test-components): add asset resolver for jest

This commit is contained in:
eliabejr 2019-01-25 17:48:42 -03:00
parent 2d512c8b04
commit 685113ef2e
1 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,10 @@
"setupTestFrameworkScriptFile": "<rootDir>/__tests__/setup/jest.js", "setupTestFrameworkScriptFile": "<rootDir>/__tests__/setup/jest.js",
"testPathIgnorePatterns": [ "testPathIgnorePatterns": [
"<rootDir>/__tests__/setup/" "<rootDir>/__tests__/setup/"
] ],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__tests__/setup/assetTransformer.js"
}
}, },
"resolutions": { "resolutions": {
"babel-core": "7.0.0-bridge.0" "babel-core": "7.0.0-bridge.0"