Ao executar o mochawesome , acusa erro no arquivo cypress.config.js . Ele esta montado como ela mostra no video.
const { defineConfig } = require("cypress");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
{ "reporter"; "mochawesome",
"reporterOptions";
{ "reportDir"; "cypress/report/mochawesome-report",
"overwrite"; true,
"html"; true,
"json"; false,
"timestamp"; "mmddyyyy_HHMMss" }}
},
},
});
},
},
});
o Erro apresentado é :
Your configFile is invalid: C:\Labs\Curso_Cypress\cypress.config.js
It threw an error when required, check the stack trace below:
Error: Cannot find module 'cypress' Require stack:
- C:\Labs\Curso_Cypress\cypress.config.js
- C:\Users\USUARIO\AppData\Local\Cypress\Cache\12.17.4\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_require_async_child.js
- C:\Users\USUARIO\AppData\Local\Cypress\Cache\12.17.4\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\require_async_child.js