From the course: JavaScript: Test-Driven Development (ES6)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JavaScript libraries For integration testing

JavaScript libraries For integration testing - JavaScript Tutorial

From the course: JavaScript: Test-Driven Development (ES6)

Start my 1-month free trial

JavaScript libraries For integration testing

- [Instructor] Now we're going to look at a few JavaScript libraries that can help us with integration testing. It's worth noting that the same libraries we used in the unit testing section, Mocha to run our tests and Chai to make testable assertions about the behavior of our code, are still valid when running integration tests. In other words, we don't need any special test environments or anything to run our integration tests. Now just as a side note here, the exception to this would be if you wanted to actually render your front end in a headless browser, in which case you would need to use something like PhantomJS or Cypress.io, but that's beyond the scope of this course. So besides Mocha and Chai, there are two main other libraries that we're going to be using in this section. There are of course a very large number of available libraries meant to help out with unit testing, but these are some of the more popular ones…

Contents