[Vuejs]-How to add global plugins in Cypress 10

0👍

I managed to get this working by importing the apps entry point in cypress/support/components.js file.

import { mount } from "cypress/vue2";

import "../../src/main.js";

Cypress.Commands.add("mount", mount);

I think this is better, considering all the plugins and packages I use in the app, instead of importing them again individually for the tests.

Leave a comment