Mock websocket server for unit tests #764
Unanswered
JulienChampagnol
asked this question in
Q&A
Replies: 3 comments
-
Are you wanting to test Nuxt HMR or are you doing something else with websockets? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The goal is to test to mock external features inside of tests |
Beta Was this translation helpful? Give feedback.
0 replies
-
So this doesn't really seem like a nuxt/test-utils feature request so much as general testing advice, right? You can of course create a websocket server in a test. But I think I (or anyone else) might need some more info on your app, what you are trying and what isn't working for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature
The same way registerEndpoint mocks a server endpoint,
is it possible to create an util that mocks a websocket server?
Additional information
Final checks
Beta Was this translation helpful? Give feedback.
All reactions