@revoloo/cypress6
Version:
Cypress.io end to end testing tool
20 lines (14 loc) • 475 B
Markdown
Spec file [plugin-spec.js](plugin-spec.js) shows how to load plugins while doing testing. The plugins might require options, which you can pass using array syntax
```js
const use = [
MyPlugin, // this plugin does not need options
[], // this plugin needs options
]
// extend Vue with plugins
const extensions = {
use,
}
mount({}, { extensions })
```
See [Vue plugin docs](https://vuejs.org/v2/guide/plugins.html)