Ajax requests can easily go wrong. You can’t guarantee the connection and the server always work correctly. They are also often used to send user input to the server and back, so it’s vital the data is handled correctly. But testing them can be tricky. It’s asynchronous, and also a good unit test must be isolated, so how can we …
ESLint vs JSLint vs JSHint vs JSCS
I recently wrote about using ESLint to auto-detect bugs. But what makes ESLint the best tool for this job? There are three other popular JavaScript linters: JSLint JSHint JSCS What are their pros and cons? How do they compare against ESLint? Read the rest of this article
What’s the difference between Unit Testing, TDD and BDD?
When you’re just getting started with automating your JavaScript testing, there’s a lot of questions. You’ll probably see people talk about unit testing, TDD or Test-Driven Development, and BDD or Behavior-Driven Development. But which one of them is the best approach? Can you use all of them? I’ve talked to a number of JavaScript developers, and there seems to be …