UNPKG

cypress-plugins

Version:

A collection of plugins for cypress created by Chetachi Paschal Enyimiri

22 lines (18 loc) 509 B
import { defineConfig } from "cypress"; async function setupNodeEvents( on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions ): Promise<Cypress.PluginConfigOptions> { const mochawesome = await import("cypress-mochawesome-reporter/plugin"); mochawesome.default(on); // Ensure compatibility with CommonJS modules return config; } export default defineConfig({ reporter: "cypress-mochawesome-reporter", reporterOptions: { saveJson: true, }, e2e: { setupNodeEvents, }, });