This project is a basic boilerplate for testing APIs using SuperTest, Chai. Specifically, it tests the {JSON} Placeholder Typicode API.
- ✅ Node.js (with ES Modules)
- ✅ SuperTest – for HTTP assertions
- ✅ Chai – for expressive assertions
- ✅ Mochawesome - generates a full fledged HTML/CSS report
api-supertest-use-case/
│-- src/
│ ├── fixtures/ # Test data (JSON)
│ ├── tests/ # Test cases
│ ├── utils/ # Utilities
│-- .env # Environment variables
│-- package.json # Dependencies & scripts
│-- README.md # Project documentation
-
Clone the repository
git clone git@github.com:vernitapang/api-supertest-use-case.git cd api-supertest-use-case -
Install dependencies
npm install
-
Run tests
npm run test
For questions or collaboration, reach out to me.