Questions tagged [vue-test-utils]

Helpers to render VueJS components in unit tests.

Toolset to make complete or shallow rendering VueJS components while writing unit tests. Can be run under Jest or Mocha test runners. See vue-test-utils.vuejs.org for details.

814 questions
0
votes
1 answer

vue.js test-utils Why my onSubmit function mock is not called?

I am trying to test the submit form event using the following spec file : ContactForm.spec.js import Vue from "vue"; import Vuex from "vuex"; import { storeMock } from "./mocks.js"; import VeeValidate from "vee-validate"; import i18n from…
user762579
0
votes
1 answer

Pass to slot a component that also needed a slot property

How can i test a component with slot, for example carousel has a slot component inside and slider has a slot component inside. This doesnt support that feature. Maybe i must use e2e tests? Tell me please how to do this. Thank you. // This is how…
R. Sultanov
  • 73
  • 1
  • 1
  • 6
0
votes
1 answer

shallowMount one level deep

I'm currently working on a Vue.Js project where we have a lot of modal components written like this: