paint-brush
Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose APIby@timbushell
1,299 reads
1,299 reads

Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API

by Tim BushellDecember 22nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API. This article assumes you have an app running alongside a MongoDB server using the mongoose library. We’re focused on testing it. We create a single module; we can put the repetitive clutter from all our tests into a single place. The result of this article is a reusable test suite that can be used to test your expressjs app. It's not dissimilar with a lot of repetitive and cluttered tests.
featured image - Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API
Tim Bushell HackerNoon profile picture
Tim Bushell

Tim Bushell

@timbushell

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

About Author

Tim Bushell HackerNoon profile picture
Tim Bushell@timbushell

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