Why is AdonisServer.instance undefined if running tests? #4074
Unanswered
rbartholomay
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
i integrate socke.tio like the description here socketio-with-adonisjs.
All runs fine, except when running test. While running tests AdonisServer.instance is undefined and so Socket.io is not working...
I solve this via:
this.io = new Server(AdonisServer.instance! || process.env.PORT, {
Then also the tests runnning fine, but i try to understand why AdonisServer.instance is not set...
Any hint?
Beta Was this translation helpful? Give feedback.
All reactions