Top "Vue-test-utils" questions

Helpers to render VueJS components in unit tests.

change selected option of v-select using vue-test-util

I'm trying to test a component builded with vuetify. For that I'm using vue-test-utils. My goal is to perform a …

vuetify.js vue-test-utils
Vue Test Utils / Jest - How to test if class method was called within a component method

I have an interesting problem with a unit test of mine. My unit test is written to click on a …

unit-testing vue.js jestjs vuex vue-test-utils
Vue-test-utils: using $nextTick multiple times in a single test

I'm writing unit tests for vuelidate validation in my component. I figured out that the $touch() method is called asynchronously, …

javascript vue.js vue-test-utils vuelidate
Vue-Test-Utils Unknown custom element: <router-link>

I'm using Jest to run my tests utilizing the vue-test-utils library. Even though I've added the VueRouter to the localVue …

vuejs2 vue-component jestjs vue-router vue-test-utils
What are "stubbed child components" in Vue Test Utils?

Vue Test Utils has an API method called shallowMount() that: ...creates a Wrapper that contains the mounted and rendered Vue …

unit-testing vue.js vuejs2 stub vue-test-utils
[Vue warn]: Unknown custom element: <nuxt-link> - When running jest unit tests

Problem I'm using nuxt 1.4 with routing using Jest to do unit testing. My application doesn't throw errors and seems to …

vue.js jestjs vue-router nuxt.js vue-test-utils
vue-test-utils: How to test logic within mounted() lifecycle hook (with vuex)?

I'm trying to write a unit test for the logic within Vue's mounted() lifecycle hook, but not having much luck. …

unit-testing vue.js jestjs vuex vue-test-utils
What is causing this issue: "Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called;."

In the VueJs web application, we have written more than 500 unit test-cases(in all modules) using vue-test-utils and mocha-webpack, using …

node.js unit-testing mocha.js vue-test-utils mocha-webpack