the whole example broken SyntaxError: Unexpected token {
adamchenwei opened this issue · 2 comments
adamchenwei commented
Similiar issue as mentioned here.
vuejs/vue-test-utils#1011
They all pointing to the import statement for @vue/test-utils
eddyerburgh commented
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.
adamchenwei commented
thanks for the reply