Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Full-Stack Vue + Node > Lesson 28

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...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom