cypress run server inline test

This commit is contained in:
SPRINX0\prochazka
2024-12-09 16:32:56 +01:00
parent 75f75d95a6
commit 5405b9bf72
5 changed files with 54 additions and 12 deletions

View File

@@ -9,11 +9,11 @@
"start-server-and-test": "^2.0.8"
},
"scripts": {
"cy:open": "cypress open",
"cy:open": "cypress open --config experimentalInteractiveRunEvents=true",
"cy:run": "cypress run",
"start:ci": "cd .. && cross-env CI=true node packer/build/bundle.js --listen-api --run-packer-build",
"start:local": "cd .. && node common/clearDataWithBackup.js && node packer/build/bundle.js --listen-api --run-packer-build",
"test:ci": "start-server-and-test start:ci http://localhost:3000 cy:run",
"test:local": "start-server-and-test start:local http://localhost:3000 cy:run"
"cy:run:ci": "cross-env CI=true cypress run",
"start": "cd .. && node packer/build/bundle.js --listen-api --run-packer-build",
"test:ci": "start-server-and-test start http://localhost:3000 cy:run:ci",
"test": "start-server-and-test start http://localhost:3000 cy:run"
}
}