vuejs/vue-test-utils-jest-example

the whole example broken SyntaxError: Unexpected token {

adamchenwei opened this issue · 2 comments

Similiar issue as mentioned here.
vuejs/vue-test-utils#1011

They all pointing to the import statement for @vue/test-utils

screen shot 2018-10-25 at 10 21 13 am

This is a version mismatch issue. If you use yarn to install (which uses the project lock file), the test code is compiled correctly.

Note that this example is outdated. It's now recommended to scaffold your project with Vue CLI 3 which provides out-of-the-box configurations for unit testing.

thanks for the reply