Chapter 4. Jasmine

The previous chapter introduced a number of JavaScript tools and frameworks, Jasmine was one of them. This chapter will showcase more about Jasmine. Jasmine is known as a behavior-driven development framework, popularly used for unit testing of JavaScript code, which makes it essential to read and understand the differences between test-driven and behavior-driven development.

We are going to learn the following:

  • Understanding behavior-driven development
  • Jasmine framework
  • Advantages and disadvantages

Understanding behavior-driven development

A very important thing to learn about TDD is that it's not about just testing, but it's more than that. It defines a process and encourages to improve the overall design of a system. We have seen ...

Get Test-Driven JavaScript Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.