Posted 10 November 2017, 12:43 am EST
Hi,
I have tried to use the vue-test-utils (Jest) with Flexgrid for Vue 2, and it does not seem to work as expected.
When the tests run I don’t find any elements that match ‘.wj-topleft’
test('shows loaded data', async () => {
const wrapper = mount(Grid)
console.log('wj-topleft', wrapper.findAll('.wj-topleft').length)
})
The output above is 0.
I have also placed a
console.log
in the registered initialized
method, and that is not being called.
If you want to try it out, here is a starting point: https://github.com/vuejs/vue-test-utils-jest-example
Do you have any ideas of how to get the grid to behave as expected within the testing environment?