Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cba85/jest-tests-example

🎓 Jest tests example for a "fake" API using only a `POST /login` route
https://github.com/cba85/jest-tests-example

integration-testing jest unit-testing

Last synced: 1 day ago
JSON representation

🎓 Jest tests example for a "fake" API using only a `POST /login` route

Awesome Lists containing this project

README

        

# Jest tests example

Jest tests example for a "fake" API using only a `POST /login` route.

1. Unit tests
2. Integration tests (using supertest package)

## Install

```
$ npm install
```

## Usage

```
$ node index.js
```

## Tests

```
$ npx jest
```

### Coverage

```
$ npx jest --coverage
```