[Vuejs]-Vue-test-utils problem with native node esm: TypeError: mount is not a function

0👍

Your FooBar import method isn’t correct so it won’t correctly mount, try this.

import {mount} from '@vue/test-utils';
// use some minimal vue component
import FooBar from 'foo-bar.vue';
const wrapper = mount(FooBar); 

Leave a comment