I'd like to write unit tests for some of my network logic in an Electron app, and need to mock out the network endpoints.
In the past, I've used nock for mocking out HTTP requests in Node. However, my Electron code uses the electron.net module for requests (instead of Node's http module), and Nock doesn't intercept these requests.
What is the best way to mock Electron network requests?