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: Unit Test dynamic compoment

I have a component where a fieldgroup ( label, input and errors ) is added. The input element is imported dynamically, according to the prop ( settings.input.component ) it receives from the parent component. And I wanted to test this component, in…
martinho
  • 1,006
  • 1
  • 10
  • 24
0
votes
1 answer

How can I properly access store actions in a Vue test?

I have a test that is passing, but I don't understand why I have to write this way. Here is the test setup: describe("Photo Due", () => { const localVue = createLocalVue(); localVue.use(Vuex); let store; let actions = { …
Brian
  • 385
  • 1
  • 5
  • 23
0
votes
0 answers

Using Jest to Test a Vue.js Component that has jQuery

I have a Vue.js component that uses a jQuery-based library called Summernote: