[Vuetify v3.0.0-alpha.12] Component Testing with cypress #14454
Unanswered
GregKukanich
asked this question in
Q&A
Replies: 1 comment
-
I resolved this problem by adding describe('should ...', () => {
beforeEach(() => {
const vuetify = createVuetify();
cy.mount(MyComponent, {
global: { plugins: [vuetify] }
});
});
it('test', () => {
// ...
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently working using Vue 3 + Pinia + Vuetify 3 + Vite + Cypress. I am trying to test one of my components using cypress. In this component I use the component from the Vuetify framework. When I run the cypress test I get the following error before the test is able to be run, "[Vuetify] Could not find defaults instance" . Just wondering if anyone could offer some help in resolving this problem? Thanks!
Below is the code for my test.
Beta Was this translation helpful? Give feedback.
All reactions