Unexpected identifier with jest + vuejs + vuetify
By default, Jest doesn't transform anything in node_modules
(where vuetify
package lives), but you actually need it to run vuetify
through the configured babel-jest
transform so that the import
s could be transpiled. To do that, use this config in jest.config.js
:
module.exports = { transformIgnorePatterns: [ '<rootDir>/node_modules/(?!vuetify)' ], ...}
A Pull Request was just submitted to document this pitfall.