Update cypress to point to dist/index for worker

This commit is contained in:
Rory Powell 2022-01-31 22:00:12 +00:00
parent 33e19c49a0
commit 0b86985c10
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ async function run() {
// it will cause environment module to be loaded prematurely // it will cause environment module to be loaded prematurely
const server = require("../../server/dist/app") const server = require("../../server/dist/app")
process.env.PORT = WORKER_PORT process.env.PORT = WORKER_PORT
const worker = require("../../worker/src/index") const worker = require("../../worker/dist/index")
// reload main port for rest of system // reload main port for rest of system
process.env.PORT = MAIN_PORT process.env.PORT = MAIN_PORT
server.on("close", () => console.log("Server Closed")) server.on("close", () => console.log("Server Closed"))