peerjs
peerjs copied to clipboard
Unit testing a PeerJS app
Does anyone have any good examples of unit testing a PeerJS client app? Is it best just to mock the entire Peer interface or is it possible to mock out the underlying WebRTC layer and have PeerJS run on top of that?
This is one possible way to do it:
https://github.com/ambianic/ambianic-ui/blob/master/tests/unit/remote/peer-fetch.spec.js
Is there a simpler way to test the PeerJS framework?