From 746d08cb7044ed9b3cc0bfe4c4c419df8248ef76 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Tue, 31 Jan 2023 18:26:30 +0000 Subject: [PATCH] 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 --- packages/builder/setup.js | 10 +++++----- packages/builder/{cypress.json => testConfig.json} | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) rename packages/builder/{cypress.json => testConfig.json} (86%) diff --git a/packages/builder/setup.js b/packages/builder/setup.js index eaadb64d39..92391f9b3b 100644 --- a/packages/builder/setup.js +++ b/packages/builder/setup.js @@ -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}/` diff --git a/packages/builder/cypress.json b/packages/builder/testConfig.json similarity index 86% rename from packages/builder/cypress.json rename to packages/builder/testConfig.json index 68117490f4..6dc1d8171e 100644 --- a/packages/builder/cypress.json +++ b/packages/builder/testConfig.json @@ -2,7 +2,6 @@ "baseUrl": "http://localhost:4100", "video": true, "projectId": "bmbemn", - "reporter": "cypress-multi-reporters", "reporterOptions": { "configFile": "reporterConfig.json" },