Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/softchris/node-express-supertest

Node Express + API testing with supertest
https://github.com/softchris/node-express-supertest

Last synced: 16 days ago
JSON representation

Node Express + API testing with supertest

Awesome Lists containing this project

README

        

This is a repo demonstrating how to:

- build a REST API using `Express`
- test the API using `supertest`

The repo is part of a talk found at:

[YouTube video](https://www.youtube.com/watch?v=EIQgVdoYb0M?wt.mc_id=youtube-social-chnoring)

## Comments

Any comments on how I can help you further. I'm at [@chris_noring](https://twitter.com/chris_noring) on Twitter. My IMs are open. :)

## How to run

Install dependencies:

```bash
npm install
```

Run tests:

```bash
npm test
```

Run tests in _watch mode_

```bash
npm run test:watch
```

## Further reading

- [Node.js path](https://docs.microsoft.com/en-us/learn/paths/build-javascript-applications-nodejs/?wt.mc_id=github-social-chnoring)

There is Node.js path on [LEARN platform](aka.ms/learn)

- [Build Web applications in Node.js](https://docs.microsoft.com/en-us/learn/modules/build-web-api-nodejs-express/?wt.mc_id=github-social-chnoring)