build app before running e2e tests
This commit is contained in:
parent
33e19c49a0
commit
6eca23541f
|
@ -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"))
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"cy:run:ci": "cypress run --record",
|
"cy:run:ci": "cypress run --record",
|
||||||
"cy:test": "start-server-and-test cy:setup http://localhost:10001/builder cy:run",
|
"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",
|
"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"
|
"cy:debug": "start-server-and-test cy:setup http://localhost:10001/builder cy:open"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
Loading…
Reference in New Issue