Add terminal report cypress package

This commit is contained in:
Harel M
2024-05-22 07:55:22 +00:00
parent 7ba9d82846
commit 8df428aec7
3 changed files with 42 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export default defineConfig({
setupNodeEvents(on, config) {
// implement node event listeners here
require("@cypress/code-coverage/task")(on, config);
require('cypress-terminal-report/src/installLogsPrinter')(on);
return config;
},
baseUrl: "http://localhost:8888",

40
package-lock.json generated
View File

@@ -93,6 +93,7 @@
"@vitejs/plugin-react": "^4.2.1",
"cors": "^2.8.5",
"cypress": "^13.7.2",
"cypress-terminal-report": "^6.0.2",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
@@ -3828,6 +3829,36 @@
"cypress": "^4.x || ^5.x || ^6.x || ^7.x || ^8.x || ^9.x || ^10.x || ^11.x || ^12.x || ^13.x"
}
},
"node_modules/cypress-terminal-report": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-6.0.2.tgz",
"integrity": "sha512-zkH/kvVlwtgxLkSOIA7pydicY3JsDDbiUEt8tAGboeHmEmX5vqzIvPvaVPfvfuA7yO6HNgnZUtAE2VOqDBt/HA==",
"dev": true,
"dependencies": {
"chalk": "^4.0.0",
"fs-extra": "^10.1.0",
"process": "^0.11.10",
"semver": "^7.5.4",
"tv4": "^1.3.0"
},
"peerDependencies": {
"cypress": ">=10.0.0"
}
},
"node_modules/cypress-terminal-report/node_modules/fs-extra": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
"integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
"dev": true,
"dependencies": {
"graceful-fs": "^4.2.0",
"jsonfile": "^6.0.1",
"universalify": "^2.0.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/cypress-wait-if-happens": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/cypress-wait-if-happens/-/cypress-wait-if-happens-1.3.3.tgz",
@@ -10049,6 +10080,15 @@
"node": "*"
}
},
"node_modules/tv4": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/tv4/-/tv4-1.3.0.tgz",
"integrity": "sha512-afizzfpJgvPr+eDkREK4MxJ/+r8nEEHcmitwgnPUqpaP+FpwQyadnxNoSACbgc/b1LsZYtODGoPiFxQrgJgjvw==",
"dev": true,
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/tweetnacl": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",

View File

@@ -121,6 +121,7 @@
"@vitejs/plugin-react": "^4.2.1",
"cors": "^2.8.5",
"cypress": "^13.7.2",
"cypress-terminal-report": "^6.0.2",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",