PrimeVue Dialog component throws an odd Vue Test Utils error (Vitest test runner) #1652
-
Here's my component, "New Device Modal", which wraps a PV Dialog component, and exposes the latter's "visible" property as the property "isDialogVisible" on my component:
And here's how I'm trying to test it:
Using this command line: The FIRST test: it('does NOT display, when mounted', ...), works as expected. But the SECOND test: it('DOES display, when toggled', ...), shows the following error information:
and, later on in the test output:
I've tried the following work-arounds:
I'm really stumped on this one. Any suggestions are welcome! (Edited: to remove some extraneous, potentially redactable info.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
PrimeVue should be added as plugin. For example: https://github.com/primefaces/primevue/blob/master/components/lib/autocomplete/AutoComplete.spec.js#L11 |
Beta Was this translation helpful? Give feedback.
PrimeVue should be added as plugin. For example: https://github.com/primefaces/primevue/blob/master/components/lib/autocomplete/AutoComplete.spec.js#L11