Skip to content
This repository has been archived by the owner. It is now read-only.

Commit e95841b

Browse files
committed
test(e2e): Test configuration using environment vars (#3)
1 parent 8452158 commit e95841b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test-e2e/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
"cypress:run:custom-config": "cross-env CYPRESS_MOCKS_SERVER_BASE_URL=http://localhost:3200 CYPRESS_MOCKS_SERVER_ADMIN_API_PATH=/foo cypress run",
1616
"start:app": "cd app && npm run serve",
1717
"mocks:ci-and-start:app": "start-server-and-test mocks:ci http-get://localhost:3100/admin/about start:app",
18+
"mocks:ci:custom-config-and-start:app": "start-server-and-test mocks:ci:custom-config http-get://localhost:3200/foo/about start:app",
1819
"test:app": "start-server-and-test mocks:ci-and-start:app http-get://localhost:3000 cypress:run",
20+
"test:app:custom-config": "start-server-and-test mocks:ci:custom-config-and-start:app http-get://localhost:3000 cypress:run:custom-config",
1921
"apps:install": "cd app && npm i",
20-
"test:ci": "npm run build:app && npm run test:app"
22+
"test:ci": "npm run build:app && npm run test:app && npm run build:app:custom-config && npm run test:app:custom-config"
2123
},
2224
"devDependencies": {
2325
"@mocks-server/main": "2.0.0-beta.1",

0 commit comments

Comments
 (0)