mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 07:56:01 +00:00
39 lines
2.2 KiB
JSON
39 lines
2.2 KiB
JSON
{
|
|
"name": "e2e-tests",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "GPL",
|
|
"devDependencies": {
|
|
"axios": "^1.7.9",
|
|
"cross-env": "^7.0.3",
|
|
"cypress": "^13.16.1",
|
|
"cypress-real-events": "^1.13.0",
|
|
"env-cmd": "^10.1.0",
|
|
"kill-port": "^2.0.1",
|
|
"start-server-and-test": "^2.0.8"
|
|
},
|
|
"scripts": {
|
|
"cy:open": "cypress open --config experimentalInteractiveRunEvents=true",
|
|
|
|
"cy:run:add-connection:local": "cypress run --spec cypress/e2e/add-connection.cy.js",
|
|
"cy:run:add-connection:ci": "cypress run --env runOnCI=true --spec cypress/e2e/add-connection.cy.js",
|
|
|
|
"cy:run:portal:local": "cypress run --spec cypress/e2e/portal.cy.js",
|
|
"cy:run:portal:ci": "cypress run --env runOnCI=true --spec cypress/e2e/portal.cy.js",
|
|
|
|
"cy:run:oauth:local": "cypress run --spec cypress/e2e/oauth.cy.js",
|
|
"cy:run:oauth:ci": "cypress run --env runOnCI=true --spec cypress/e2e/oauth.cy.js",
|
|
|
|
"start:add-connection": "cd .. && node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
|
|
"start:portal:local": "cd .. && env-cmd -f e2e-tests/env/portal-local/.env node e2e-tests/init/portal.js && env-cmd -f e2e-tests/env/portal-local/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
"start:portal:ci": "cd .. && env-cmd -f e2e-tests/env/portal-ci/.env node e2e-tests/init/portal.js && env-cmd -f e2e-tests/env/portal-ci/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
|
|
"start:oauth:local": "cd .. && env-cmd -f e2e-tests/env/oauth-local/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
"start:oauth:ci": "cd .. && env-cmd -f e2e-tests/env/oauth-ci/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
|
|
"test:ci": "start-server-and-test start:add-connection http://localhost:3000 cy:run:add-connection:ci && start-server-and-test start:portal:ci http://localhost:3000 cy:run:portal:ci && start-server-and-test start:oauth:ci http://localhost:3000 cy:run:oauth:ci",
|
|
"test:local": "start-server-and-test start:add-connection http://localhost:3000 cy:run:add-connection:local && start-server-and-test start:portal:local http://localhost:3000 cy:run:portal:local && start-server-and-test start:oauth:local http://localhost:3000 cy:run:oauth:local"
|
|
}
|
|
}
|