Skip to content

vernitapang/api-supertest-use-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 SuperTest API Testing Use Case

SuperTest

This project is a basic boilerplate for testing APIs using SuperTest, Chai. Specifically, it tests the {JSON} Placeholder Typicode API.

📦 Tech Stack

  • ✅ Node.js (with ES Modules)
  • SuperTest – for HTTP assertions
  • Chai – for expressive assertions
  • Mochawesome - generates a full fledged HTML/CSS report

📂 Project Structure

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

🛠️ Installation & Setup

  1. Clone the repository

    git clone git@github.com:vernitapang/api-supertest-use-case.git
    cd api-supertest-use-case
  2. Install dependencies

    npm install
  3. Run tests

    npm run test

📧 Contact

For questions or collaboration, reach out to me.

About

API Test Automation using SuperTest. Using JSONPlaceholder by Typicode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors