---
type: video
yt_id: VVU2YVRMdUlfajQtMHdpRFN6bWFQY3RRLkZLbnpTX2ljcDIw
videoId: FKnzS_icp20
title: "Testing Node Server with Jest and Supertest"
date: "2021-04-05T17:34:38Z"
slug: "testing-node-server-with-jest-and-supertest"
image: 
  name: "testing-node-server-with-jest-and-supertest.jpg"
  alt: "Testing Node Server with Jest and Supertest"
  width: 1280
  height: 720
status: 'published'
description: "Learn how to test a node.js HTTP server using Jest and Supertest."
tags: ['JavaScript', 'js', 'tdd', 'test driven development', 'automated test']
---

Learn how to test a node.js HTTP server using Jest and Supertest.

🔗  Previous Videos:
Introduction to Writing Automated Tests With Jest: [https://youtu.be/hz0_q1MJa2k](https://youtu.be/hz0_q1MJa2k)
Introduction to TDD in JavaScript: [https://youtu.be/89Pl2Uok8xc](https://youtu.be/89Pl2Uok8xc)

🔗  Text version:
[https://sammeechward.com/testing-an-express-app-with-supertest-and-jest/](https://sammeechward.com/testing-an-express-app-with-supertest-and-jest/)

🔗  Using Jest with ESModules:
[https://sammeechward.com/jest-and-esmodules/](https://sammeechward.com/jest-and-esmodules/)

🔗 Code:
[https://github.com/Sam-Meech-Ward/express_jest_and_mocks/tree/express](https://github.com/Sam-Meech-Ward/express_jest_and_mocks/tree/express)

🔗 Moar Links
My Website: [https://www.sammeechward.com](https://www.sammeechward.com)
Instagram: [https://www.instagram.com/meech_ward](https://www.instagram.com/meech_ward)
Github: [https://github.com/orgs/Sam-Meech-Ward](https://github.com/orgs/Sam-Meech-Ward)
TikTok: https://www.tiktok.com/@meech.s.ward
