Black-box Testing a Node.js Web API

Table of Contents

Lost in the Woods

Web API Request / Response Pipeline

Datastores Galore

But Why SuperTest?

The Final Solution

1. Testing Workflow

Black-box Testing Workflow

2. Dependencies

3. NPM Test Script

4. Jest Configuration

5. Global Setup

6. Database Setup

7. Test Environment

8. Integration Tests

9. HTTP Client Setup

10. Global Teardown

Summary

Acknowledgements

A technology enthusiast and instructor working with code, cloud, networking and just about everything in between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store