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:
parent
ad0bba5fc2
commit
746d08cb70
|
@ -1,14 +1,14 @@
|
||||||
const cypressConfig = require("./cypress.json")
|
const testConfig = require("./testConfig.json")
|
||||||
|
|
||||||
// normal development system
|
// normal development system
|
||||||
const SERVER_PORT = cypressConfig.env.PORT
|
const SERVER_PORT = testConfig.env.PORT
|
||||||
const WORKER_PORT = cypressConfig.env.WORKER_PORT
|
const WORKER_PORT = testConfig.env.WORKER_PORT
|
||||||
|
|
||||||
if (!process.env.NODE_ENV) {
|
if (!process.env.NODE_ENV) {
|
||||||
process.env.NODE_ENV = "cypress"
|
process.env.NODE_ENV = "test"
|
||||||
}
|
}
|
||||||
process.env.ENABLE_ANALYTICS = "0"
|
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.SELF_HOSTED = 1
|
||||||
process.env.WORKER_URL = `http://localhost:${WORKER_PORT}/`
|
process.env.WORKER_URL = `http://localhost:${WORKER_PORT}/`
|
||||||
process.env.APPS_URL = `http://localhost:${SERVER_PORT}/`
|
process.env.APPS_URL = `http://localhost:${SERVER_PORT}/`
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"baseUrl": "http://localhost:4100",
|
"baseUrl": "http://localhost:4100",
|
||||||
"video": true,
|
"video": true,
|
||||||
"projectId": "bmbemn",
|
"projectId": "bmbemn",
|
||||||
"reporter": "cypress-multi-reporters",
|
|
||||||
"reporterOptions": {
|
"reporterOptions": {
|
||||||
"configFile": "reporterConfig.json"
|
"configFile": "reporterConfig.json"
|
||||||
},
|
},
|
Loading…
Reference in New Issue