Skip to content

Commit

Permalink
fix(global): file and css mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Nov 2, 2018
1 parent 78fb2af commit d835a48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions __mocks__/style-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
"moduleDirectories": [
"node_modules",
"src"
]
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/file-mock.js",
"\\.(css|less)$": "<rootDir>/__mocks__/style-mock.js"
}
},
"config": {
"commitizen": {
Expand Down

0 comments on commit d835a48

Please sign in to comment.