vuejs-templates/webpack

Handle asset types in Jest

eddyerburgh opened this issue · 1 comments

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.

Yeah do a PR please