Open dnorthcoombes opened 3 years ago
@dnorthcoombes I encountered the same issue. I can confirm that adding the transform attribute to jest.config.js
and reinstalling Jest works! Thank you for sharing your resolution!
@dnorthcoombes -- I can also confirm, importantly in conjunction to adding the transform attribute to jest.config.js
running npm install --save-dev vue-jest
does fix this error. (to reiterate @angela-mitchell-vmlyr) thank you!
Dan first of all apologies if this is not the correct place for this (first time, long time). I had an issue with running the snapshot test. Below shows the issue and how it was resolved.
Issue
When running npm test for the suite below:
I received the following error:
Resolution
I had a look through the repo and noticed in branch 'upgrade-component' that vue-jest was installed in devDependencies and jest.config.js included the transform attribute. After installing vue-jest and adding the transform object the test then successfully completed.
I am assuming this is an issue with my setup but thought I would add this in case others run into the same problem.
By the way enjoyable course so far. Well done.