Now, we get to a common requirement: testing and debugging your app. The first thing I'll have to tell you is that there's no news in regards to testing! All the techniques we saw for testing browser and Node code still apply, since your Electron app is essentially just a browser app (albeit possibly with some extra functions) that you'll mock in the same way you did earlier, so there's nothing new to be learned here.
However, with regard to debugging, there will be some new requirements, since your code is not running in a browser. In a similar way as with React Native, we'll have to use some tools in order to be able to look into our code as it runs. Let's see, in this recipe, how to go about all of this.