Electron Adventures: Episode 24: Unit Testing Electron
In previous episode, fileInfo function in preload.js got quite long, so let's write some tests.
We can start by installing jest, which looks like the most popular backend testing framework for Javascript:
$ npm install --save-dev jest
And we can als...
taw.hashnode.dev3 min read