Closed qwerty3858 closed 1 year ago
Were you able to find a solution for this?
yes, ı solved, Solve is here.
const wrapper = mount(VehicleInfoDialog, { global: { plugins: [PrimeVue, ToastService, ConfirmationService] }, props: { operation: 1 } })
Thank you for sharing your solution.
I am encountering the same issue as above, just using useToast() on the latest version in jest, and the above solution does not solve the issue of "No PrimeVue Toast provided!"
I am encountering the same issue as above, just using useToast() on the latest version in jest, and the above solution does not solve the issue of "No PrimeVue Toast provided!"
Hi, I am facing the same issue. Did you manage to find a solution for this?
I am writing a test with Vue jest. But when I say run:test "No PrimeVue Confirmation provided!" It shows that this error is caused by useToast() and useConfirm() services.
I pasted this where I wrote the jest and the final version was as follows.
It continued to give errors in this state.
I also added PrimeVue globally in the .spec.js file I wrote a test for.
error is here:
But the error is not resolved.
In Primevue, where I do not use useToast or UseConfirm, I can test without getting an error. How can I solve this error?