fix(integration): setup (#5511)

* fix(integration): setup
This commit is contained in:
Adrien de Peretti
2023-11-01 13:56:12 -04:00
committed by GitHub
parent 4692f54b49
commit 80fe362f33
45 changed files with 461 additions and 405 deletions
@@ -1,18 +1,3 @@
const { bootstrapApp } = require("./bootstrap-app")
const { setContainer } = require("./use-container")
const { setPort, setExpressServer } = require("./use-api")
const { startBootstrapApp } = require("./bootstrap-app")
const setup = async () => {
const { app, port, container } = await bootstrapApp()
setContainer(container)
const expressServer = app.listen(port, (err) => {
setPort(port)
process.send(port)
})
setExpressServer(expressServer)
}
setup()
startBootstrapApp()