-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Description
I'm running into an issue where I can't mock the method called in my mounted()
hook and I'm assuming it has to do with the load order.
const myMethod = sinon.stub();
wrapper.setMethods({ myMethod });
I've also tried
const myMethod = sinon.spy();
wrapper = mount(ProfileSidebarIndex, {
methods: { myMethod },
});
and mocking mounted
itself
const mounted = sinon.stub();
wrapper = mount(ProfileSidebarIndex, {
mounted
});
Is there a way to do this?
berkes, begueradj, Royalone94, keligijus, ConorSheehan1 and 3 more