How to Write & Organize Node.js API Tests the Right Wayby@larswaechter

How to Write & Organize Node.js API Tests the Right Way

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

This is an architecture for testing Node.js REST APIs that use a database in the background. In this architecture, we don't use any kind of ORM. Instead, we use [Jest] and [Supertest] to test our application's components independently. We'll use two different approaches: unit tests for testing single components and integration tests. The architecture of our application looks roughly like this: [Express](https://www.npmjs.com/package/express)

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Write & Organize Node.js API Tests the Right Way
Lars Wächter HackerNoon profile picture

@larswaechter

Lars Wächter

CS Student | Software Developer


Receive Stories from @larswaechter

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!