Skip to main content

All Questions

1 vote
0 answers
130 views

Do my tests need to be rewritten when mounting a setup() based Vue2.6 component with data param? Upgrading @vue/composition-api from 0.6.7 to 1.7.1

I'm having an exciting upgrade in a vue2 project using @vue/composition-api 0.6.7, trying to upgrade to 1.7.1. Some tests are breaking and I'm noticing a pattern where the tests in question mount a ...
scvnc's user avatar
  • 1,040
2 votes
1 answer
1k views

Vue testing - How to simulate a long press mouse click

I created a helper to simulate long click with the mouse (press left click for one second for example). Now I would like to test it with vue-test-utils but I could not find anything about this ...
Nico's user avatar
  • 111
1 vote
3 answers
2k views

Change Vue 'provide' data during test

I'm using [email protected] with jest@26 in order to test my component. The component gets provide data from a parent, and watches for changes of it. Parent component injects a computed value. I ...
Tzahi Leh's user avatar
  • 2,500
3 votes
0 answers
1k views

vue-composition-api unit testing with typescript, how to get internal setup function and data inside wrapper?

Currently, I try to get the attributes inside my vue component while using vue-test-utils I have included the VueCompositionAPI here is my code: test.vue <template> <div/> </...
Sen's user avatar
  • 338