I am doing my tests with jest and one of my components makes use of InjectReactive and Inject. Whenever I run the test I have the always problem:
console.error
[Vue warn]: Injection "alertService" not found
found in
---> <ParticipantesComponent>
<Root>
at warn (node_modules/vue/dist/vue.runtime.common.dev.js:621:15)
at resolveInject (node_modules/vue/dist/vue.runtime.common.dev.js:2471:11)
at initInjections (node_modules/vue/dist/vue.runtime.common.dev.js:2423:16)
at VueComponent.Vue._init (node_modules/vue/dist/vue.runtime.common.dev.js:4986:5)
at new VueComponent (node_modules/vue/dist/vue.runtime.common.dev.js:5134:12)
at createComponentInstanceForVnode (node_modules/vue/dist/vue.runtime.common.dev.js:3277:10)
at init (node_modules/vue/dist/vue.runtime.common.dev.js:3108:45)
console.error
[Vue warn]: Injection "__reactiveInject__" not found
Hello.
I have version 8.4.2.
I am doing my tests with jest and one of my components makes use of
InjectReactive
andInject
. Whenever I run the test I have the always problem:Test:
Could you help me. Thanks.