Handle asset types in Jest
eddyerburgh opened this issue · 1 comments
eddyerburgh commented
By default, Jest can't handle asset imports.
We need to add a workaround like this:
"jest": {
"transform": {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
}
}
I'm happy to make a PR.
LinusBorg commented
Yeah do a PR please