Skip to content

About

minimal take on supertest

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

supertest-light

supertest-light is

  • an ultra-minimalist take on supertest
  • much smaller
  • and removes idiosyncratic aspects such as expect

usage

Example

(async () => {
  const res = await request(app)
    .set("User-Agent", "Supertest-Light")
    .get("/user/bart/messages");

  assert.equal(res.text, "Hello bart!");
})();

Note that .get, .post, and .send are all terminals that return a promise.

About

minimal take on supertest

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages