Unit Test Dependency

UI Components for Vue
Post Reply
richardshergold
Posts: 5
Joined: 13 Oct 2021, 14:16

25 Nov 2021, 12:25

Can anyone tell me if it's possible to write a unit test for a component that uses the PrimeVue ConfirmationService? My test falls over at the line const confirm = useConfirm() with the error "No PrimeVue Confirmation provided!" - how do I include this dependency in my unit test?

Code: Select all

should show a data-table (22ms)

  should show a data-table

   No PrimeVue Confirmation provided!

      125 |   },
      126 | });
    > 127 | const confirm = useConfirm();

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests