This is a mock for simple-peer
library, it provides API that Detox project uses and offers it without actual WebRTC under the hood, so that tests can create more connections with lower CPU/RAM usage.
npm install --save-dev github:Detox/simple-peer-mock
const simplePeerMock = require('@detox/simple-peer-mock').simplePeerMock; // This is a constructor
require('@detox/simple-peer-mock').register() // This will replace `@detox/simple-peer` package globally
Feel free to create issues and send pull requests (for big changes create an issue first and link it from the PR), they are highly appreciated!
When reading LiveScript code make sure to configure 1 tab to be 4 spaces (GitHub uses 8 by default), otherwise code might be hard to read.
Free Public License 1.0.0 / Zero Clause BSD License