1
0
Fork 0
mirror of synced 2024-06-26 10:00:41 +12:00

build app before running e2e tests

This commit is contained in:
Maurits Lourens 2022-01-31 23:13:42 +01:00
parent d1bcf4f3ba
commit 75ef92d645
2 changed files with 2 additions and 1 deletions

View file

@ -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"))

View file

@ -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": {