Trying to write this as a 2007 blog post: personal, not so politically correct. (I’m not involved in JS politics by the way)
Just like everything in the JavaScript world, there are 100s of different testing utilities to…
When asked about testing front end code, I’d usually reply with something like “I haven’t found the right tool and approach yet”, but maybe that’s because I wasn’t really looking. After searching around for a while I found QUnit and really liked how easy…
Tests are absolutely a must. Without tests, it is not possible to evolve software.
Originally written on samueleresca.net
Wallaby.js is insanely fast…
So you’ve written…
If you aren’t in the habit already, writing tests for your code is an excellent way to stay disciplined as a software engineer on any project. If you don’t think that it’s worth your time, but wish you had a way to thoroughly check your code as…
When writing JavaScript applications or websites a lot of developers write unit tests to ensure the code does what it is supposed to do. The hottest code uses ES6 and transpiles to ES5 with Babel. Mocha is pretty popular as a…
Testing async code with Mocha using callbacks is pretty straight forward, all you need to do is pass the done function down the callback chain and ensure it is executed after your last assertion: