Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 29

Testing server response

The question now is how can we test our Express instance. Well, there's a library designed exactly for this called Supertest.

In fact, this library was created by the developers who created Express and is therefore perfect for the job.

Let's install that by going:

$ npm i -D supertest@3

To use Supertest, let's first require it at the top of the file. The idiosyncratice way of using it is to assign the Supertest module to a constant called request:


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom