UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

18 lines (13 loc) 434 B
const Promise = require('bluebird') const errors = require('../errors') const plugins = require('../plugins') module.exports = { execute: Promise.method((eventName, config = {}, ...args) => { if (!plugins.has(eventName)) return return plugins.execute(eventName, ...args) .catch((err) => { err = err || {} errors.throw('PLUGINS_RUN_EVENT_ERROR', eventName, err.stack || err.message || err) }) }), }