Skip to content

Replicating plugins in component testing #25371

Discussion options

You must be logged in to vote

Resolved with Vue Test Utils syntax:

import { mount } from "cypress/vue";

Cypress.Commands.add("mount", (component) => {
return mount(component, {
global: {
plugins: [createPinia(), i18n],
},
});
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jrogers23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant