vue-jest icon indicating copy to clipboard operation
vue-jest copied to clipboard

Jest encountered an unexpected token from vue 2 application

Open ashif25 opened this issue 1 year ago • 1 comments

image I'm trying to update the node version from 12 to 16 and all node packages. I'm able to build successfully and clean up errors from ESLint but while running jest most of the test failed due to that import underscore issue.

ashif25 avatar Oct 27 '22 16:10 ashif25

Are you updating from vue-jest? When I did that, I had to switch from .babelrc to babel.config.js otherwise babel wouldn't pick it up or work at all and thus esm syntax didn't work for me

dschmidt avatar Nov 11 '22 21:11 dschmidt