https://github.com/peterdee/express-tests
Basic API testing with Mocha and Chai for Express
https://github.com/peterdee/express-tests
chai express mocha node supertest testing
Last synced: 2 months ago
JSON representation
Basic API testing with Mocha and Chai for Express
- Host: GitHub
- URL: https://github.com/peterdee/express-tests
- Owner: peterdee
- License: mit
- Created: 2022-08-11T13:19:17.000Z (almost 3 years ago)
- Default Branch: release
- Last Pushed: 2022-08-11T13:33:37.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T10:11:16.665Z (4 months ago)
- Topics: chai, express, mocha, node, supertest, testing
- Language: JavaScript
- Homepage: http://localhost:3000
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## express-tests
Basic API testing with [Mocha](https://mochajs.org) and [Chai](https://www.chaijs.com) for [Express](http://expressjs.com)
### Deploy
```shell script
git clone https://github.com/peterdee/express-tests
cd ./express-tests
nvm use 18
npm i
```### Launch
```shell script
npm start
```Server will be available at http://localhost:3000
### Testing
Tests are done with [Mocha](https://mochajs.org) and [Chai](https://www.chaijs.com)
Express application is launched for every test separately using [Supertest](https://www.npmjs.com/package/supertest)
```shell script
npm run test
```### Linting
```shell script
npm run lint
```Using [ESLint](https://eslint.org)
### License
[MIT](./LICENSE.md)