We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The server is always automatically started when:
const app = require('../server/app)
or
const app = rewire('../server/app.js)
For waiting the app to start, this event does the trick:
gluu-passport/server/app.js
Line 87 in 6275ef2
But for unit-tests, we need to be able to test the app.js file without server starting.
app.js
The problem is that, right now,
recreateHttpServer
reconfigure
[poolConfiguration
Line 92 in 6275ef2
init
Maybe we can use Factory design pattern to detach? Any thoughts @kdhttps @jgomer2001 ?
The text was updated successfully, but these errors were encountered:
refactor(app): move app creation to factory method
9cefc2f
app was untestable, so app-factory.js was created to ensure it can be tested. closes #141
refactor(app-factory): export app express instance too
6eb4e2d
fix #141
Successfully merging a pull request may close this issue.
The server is always automatically started when:
or
For waiting the app to start, this event does the trick:
gluu-passport/server/app.js
Line 87 in 6275ef2
But for unit-tests, we need to be able to test the
app.js
file without server starting.The problem is that, right now,
recreateHttpServer
functionreconfigure
function,[poolConfiguration
function](gluu-passport/server/app.js
Line 92 in 6275ef2
init
function.Maybe we can use Factory design pattern to detach? Any thoughts @kdhttps @jgomer2001 ?
The text was updated successfully, but these errors were encountered: