cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

Config file for cypress-multi-reporters displayed as Cypress config

Open sk22 opened this issue 3 years ago • 0 comments

Description

Documentation mistakenly displays a custom reporter module's config file (reporter-config.json) as the Cypress configuration.

URL of Issue(s)

https://docs.cypress.io/guides/tooling/reporters#Cypress-configuration-4

Steps to replicate

  • I read about how to configure Cypress using cypress-multi-reporters as a reporter
  • I saw that the Cypress config indicates that the reporter options are in reporter-config.json
  • I looked for an example reporter-config.json, but couldn't find one
  • I noticed that two code blocks later, the configuration shown should actually be reporter-config.json, and neither cypress.config.js, nor cypress.json

Browser

Chrome Version 102.0.5005.115

Additional Information

The reporter config file being rendered as the cypress.config.js also leads to the documentation suggesting to wrap it in Cypress' defineConfig function, which is only meant for the Cypress configuration (if I'm not mistaken) and shows a warning about the cypress.json variant being deprecated - even though the cypress-multi-reporters reporter config is not the Cypress config.

sk22 avatar Jun 21 '22 10:06 sk22