Closed
Description
Every decent (software) project needs tests
"Frontend" (browser processes)
This is about testing react components in isolation. To run the tests we should use karma and spawn a chrome process (close enough to electrons chromium instances). Interesting modules and notes
- https://github.com/sheepsteak/react-shallow-testutils
- https://github.com/percyhanna/rquery
- https://github.com/jhnns/rewire-webpack (mock require calls, especially ipc)
- https://github.com/pgte/nock (mock http calls)
"Backend" (electron main process)
This is much harder, as too much functionality depends on running the real deal aka an electron instance. So very happy to hear any suggestions around this.