Skip to content
New issue

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

Feature Request: Docs/Support for client side unit testing of socketio clients #5099

Open
1 of 2 tasks
georgeedwards opened this issue Jun 13, 2017 · 2 comments
Open
1 of 2 tasks
Labels
documentation Improvements or additions to documentation package:socket.io-client This concerns the "socket.io-client" package

Comments

@georgeedwards
Copy link

You want to:

  • report a bug
  • request a feature

Current behaviour

If you have a front end application which uses the socketio client, it is unclear how you can unit test this functionality. I have described how the issue manifests with angular (but this is applicable to any client side unit testing) here. I can't seem to see any documentation for this or third part blogs/tutorials etc.

Expected behaviour

This should be a supported and documented use case.

@georgeedwards
Copy link
Author

@darrachequesne Any ideas on this?

@darrachequesne
Copy link
Member

@georgeedwards Module parse failed seems to be webpack (version 1.x, if I'm not mistaken) failing to read the sourcemap file (which is served by the server by default). I think you have to use null-loader to skip that file (see example here, the version on master should work for webpack 2.0).

Else, the workflow described in your stackoverflow question seems good to me. (integration test, not unit test right?)

@darrachequesne darrachequesne added the documentation Improvements or additions to documentation label Jan 28, 2021
@darrachequesne darrachequesne transferred this issue from socketio/socket.io-client Jul 9, 2024
@darrachequesne darrachequesne added the package:socket.io-client This concerns the "socket.io-client" package label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation package:socket.io-client This concerns the "socket.io-client" package
Projects
None yet
Development

No branches or pull requests

2 participants