boxblinkracer / cypress-testrail

A decoupled TestRail integration for your Cypress project to easily send results to TestRail
MIT License
32 stars 24 forks source link

How to register a plugin in Cypress V10 and above #26

Closed shashank-mhegde closed 9 months ago

shashank-mhegde commented 1 year ago

In cypress V10 and above, we dont have default plugins folder.

 setupNodeEvents(on, config)
    {
        return require('./cypress/plugins/index.js')(on, config)
    }

Adding above in cypress.config file is giving below error

image

How do we register this plugin ?. Do we need to add the plugins folder

boxblinkracer commented 1 year ago

hi there

thanks for your message

you can just create it, or even drop the registration right in that setupNodeEvents, should also work, because on and config exists). I also use it on later Cypress setups :) so that works