You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or simply add this to test/unit/features/options/mixins.spec.js
it('should not mix global mixined lifecycle hook twice',()=>{constspy=jasmine.createSpy('global mixed in lifecycle hook')Vue.mixin({created(){spy()}})constmixin=Vue.extend({})constChild=Vue.extend({mixins: [mixin],created(){}})constvm=newChild()expect(spy.calls.count()).toBe(1)})
What is expected?
spy to be called once
What is actually happening?
spy is called twice
When using vue-class-component , it's easy to pass not-plain-object to Vue.extends mixins