Skip to main content

All Questions

1 vote
0 answers
163 views

Why does change not get emitted when triggering click on b-form-checkbox?

Using Jest I'm trying to test that a method gets called when a toggle button is clicked. But before getting around to checking that the method is called, I want to check if 'change' is emitted by the ...
Oscar Schafer's user avatar
1 vote
0 answers
368 views

How to create a vue-test-utils wrapper for Bootstrap-Vue b-modal?

I have the following b-modal in the component's template and I'm trying to write a unit test checking whether updateDashBoardDataClone method has been called on updateDashBoardDataClone custom event. ...
bba278's user avatar
  • 419
0 votes
1 answer
5k views

How to test that a Vue directives is called on hover/mouseover?

I try to test that theb-tooltip.hover directive from bootstrap-vue is called on hover. It seems that the directive is called even without triggering the hover event andbuttonWrapper.trigger('mouseover'...
Simon Thiel's user avatar
  • 3,295
0 votes
3 answers
3k views

Getting [Vue warn]: Unknown custom element: <b-modal> even though bootstrap-vue is registered

A BootstrapVue b-modal component in a custom Vue component loads correctly in the browser. However, when testing using mocha+mochapack, it generates a Vue warning that the b-modal element is not ...
U Design We Code's user avatar