So i have a problem using jest and vue-test-utils to test my component with activated life cycle, for example i have component with activated hook like this
activated() {
console.log('activated')
this.activatedData = true
}
it will not be triggered after i executed shallowMount
const wrapper = shallowMount(MyComponent, { localVue })
expect(wrapper.vm.activatedData).toBe(true) // failed because it still false
how do i test the activated life cycle then?