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

https://github.com/peterdee/mongoose-mocha

A simple showcase of how Mongoose can be tested with Mocha, Chai and MongoDB Memory Server
https://github.com/peterdee/mongoose-mocha

chaijs mochajs mongodb mongodb-mocking mongoose

Last synced: 4 months ago
JSON representation

A simple showcase of how Mongoose can be tested with Mocha, Chai and MongoDB Memory Server

Awesome Lists containing this project

README

          

## Testing Mongoose with Mocha

A simple showcase of how [Mongoose](https://mongoosejs.com) can be tested with [Mocha](https://mochajs.org), [Chai](https://www.chaijs.com) and [MongoDB Memory Server](https://github.com/nodkz/mongodb-memory-server)

### Deploy

```shell script
git clone https://github.com/peterdee/mongoose-mocha
cd ./mongoose-mocha
nvm use 16
npm i
```

### Testing

```shell script
npm run test
```

### Linting

```shell script
npm run lint
```

Using [ESLint](https://eslint.org)

### License

[MIT](./LICENSE.md)