paint-brush
How to Write & Organize Node.js API Tests the Right Wayby@larswaechter
245 reads

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

by Lars Wächter14mNovember 23rd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Lars Wächter

Lars Wächter

@larswaechter

CS Student | Software Developer

Learn More
LEARN MORE ABOUT @LARSWAECHTER'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lars Wächter HackerNoon profile picture
Lars Wächter@larswaechter
CS Student | Software Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here