1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Renaming cypress.json

Renamed to testConfig.json.

The file was still required when I was running API tests.

Also updated setup.js based on file name change
This commit is contained in:
Mitch-Budibase 2023-01-31 18:26:30 +00:00
parent ad0bba5fc2
commit 746d08cb70
2 changed files with 5 additions and 6 deletions

View file

@ -1,14 +1,14 @@
const cypressConfig = require("./cypress.json")
const testConfig = require("./testConfig.json")
// normal development system
const SERVER_PORT = cypressConfig.env.PORT
const WORKER_PORT = cypressConfig.env.WORKER_PORT
const SERVER_PORT = testConfig.env.PORT
const WORKER_PORT = testConfig.env.WORKER_PORT
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = "cypress"
process.env.NODE_ENV = "test"
}
process.env.ENABLE_ANALYTICS = "0"
process.env.JWT_SECRET = cypressConfig.env.JWT_SECRET
process.env.JWT_SECRET = testConfig.env.JWT_SECRET
process.env.SELF_HOSTED = 1
process.env.WORKER_URL = `http://localhost:${WORKER_PORT}/`
process.env.APPS_URL = `http://localhost:${SERVER_PORT}/`

View file

@ -2,7 +2,6 @@
"baseUrl": "http://localhost:4100",
"video": true,
"projectId": "bmbemn",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "reporterConfig.json"
},