Skip to content

Commit

Permalink
fix: cypress reports generation (#6894)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate authored Dec 20, 2024
1 parent dcd51a7 commit 81b324c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 30 deletions.
9 changes: 6 additions & 3 deletions cypress-tests/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "cypress";
import "cypress-mochawesome-reporter/plugin.js";
import mochawesome from "cypress-mochawesome-reporter/plugin.js";

let globalState;

Expand All @@ -10,7 +10,9 @@ const reportName = process.env.REPORT_NAME || `${connectorId}_report`;

export default defineConfig({
e2e: {
setupNodeEvents(on) {
setupNodeEvents(on, config) {
mochawesome(on);

on("task", {
setGlobalState: (val) => {
return (globalState = val || {});
Expand All @@ -26,6 +28,8 @@ export default defineConfig({
return null;
},
});

return config;
},
experimentalRunAllSpecs: true,

Expand All @@ -43,6 +47,5 @@ export default defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 10000,
pageLoadTimeout: 20000,

screenshotsFolder: screenshotsFolderName,
});
44 changes: 22 additions & 22 deletions cypress-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions cypress-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"author": "Hyperswitch",
"license": "ISC",
"devDependencies": {
"@eslint/js": "^9.16.0",
"cypress": "^13.16.0",
"@eslint/js": "^9.17.0",
"cypress": "^13.17.0",
"cypress-mochawesome-reporter": "^3.8.2",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.13.0",
"globals": "^15.14.0",
"jsqr": "^1.4.0",
"prettier": "^3.4.1"
"prettier": "^3.4.2"
}
}

0 comments on commit 81b324c

Please sign in to comment.