From 6eca23541ff9b4771091aba95b8a87d724b98284 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Mon, 31 Jan 2022 23:13:42 +0100 Subject: [PATCH] build app before running e2e tests --- packages/builder/cypress/setup.js | 2 +- packages/builder/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/cypress/setup.js b/packages/builder/cypress/setup.js index 7657303853..cf5ec53ceb 100644 --- a/packages/builder/cypress/setup.js +++ b/packages/builder/cypress/setup.js @@ -40,7 +40,7 @@ async function run() { // it will cause environment module to be loaded prematurely const server = require("../../server/dist/app") process.env.PORT = WORKER_PORT - const worker = require("../../worker/src/index") + const worker = require("../../worker/dist/index") // reload main port for rest of system process.env.PORT = MAIN_PORT server.on("close", () => console.log("Server Closed")) diff --git a/packages/builder/package.json b/packages/builder/package.json index 4bacc69112..86c36c1d58 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -17,6 +17,7 @@ "cy:run:ci": "cypress run --record", "cy:test": "start-server-and-test cy:setup http://localhost:10001/builder cy:run", "cy:ci": "start-server-and-test cy:setup http://localhost:10001/builder cy:run", + "precy:ci": "yarn run build", "cy:debug": "start-server-and-test cy:setup http://localhost:10001/builder cy:open" }, "jest": {