Estou com uma dúvida na hora de rodar o npx cypress run --reporter mochawesome
const { defineConfig } = require('cypress');
module.exports = { "reporter": "mochawesome", "reporterOptions": { "reportDir": "cypress/report/mochawesome-report", "overwrite": true, "html": true, "json": false, "timestamp": "mmddyyyy_HHMMss" } };
O erro que aparece:
Your configFile is invalid: C:\Users\rodrigo.santos\Documents\projeto-cypress\cypress.config.js
It threw an error when required, check the stack trace below:
ReferenceError: cypress is not defined at Object. (C:\Users\rodrigo.santos\Documents\projeto-cypress\cypress.config.js:1:34) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at loadFile (C:\Users\rodrigo.santos\AppData\Local\Cypress\Cache\13.3.3\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_require_async_child.js:89:14) at EventEmitter. (C:\Users\rodrigo.santos\AppData\Local\Cypress\Cache\13.3.3\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_require_async_child.js:116:38) at EventEmitter.emit (node:events:390:28) at process. (C:\Users\rodrigo.santos\AppData\Local\Cypress\Cache\13.3.3\Cypress\resources\app\node_modules@packages\server\lib\plugins\util.js:33:22) at process.emit (node:events:390:28) at emit (node:internal/child_process:917:12) at processTicksAndRejections (node:internal/process/task_queues:84:21)