---
title: "Discussion on \"#100DaysOfMERN - Day 35\" | Hashnode"
description: "Discussion on \"#100DaysOfMERN - Day 35\". ✏ How to test your MongoDB/Mongoose backend code with Mocha\nMocha is a free testing framework that runs both in Node and in the browser. You can use it to test pretty much anything, but specifically in combination with MongoDB, it allows you to test ..."
url: "https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [#100DaysOfMERN - Day 35](https://blog.jsdisco.dev/100daysofmern-day-35?utm_source=hashnode&utm_medium=feed)

✏ How to test your MongoDB/Mongoose backend code with Mocha Mocha is a free testing framework that runs both in Node and in the browser. You can use it to test pretty much anything, but specifically in combination with MongoDB, it allows you to test ...

Feb 23, 2021 · 10 min read · blog.jsdisco.dev  
Updated Dec 15, 2022  
Read the article

-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#mern](https://hashnode.com/tag/mern)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[marayana](https://hashnode.com/@marayana)

@marayana · Europe

  
[View profile](https://hashnode.com/@marayana)

Stayin' alive (and sane) at the JavaScript disco

## Responses 2

Markdown supported · ⌘↵ to post

[Pratik Zinjurde](https://hashnode.com/@pratikpz)

[Feb 24, 2021](https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e/comment/6035f3f10dde8f7722d1f014)

im having trouble in setting freindrequest to other users in my mern app could you suggest me how to tackle it in user schema i added an array of friends list which has objects friends id and friends name email

[Feb 24, 2021](https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e/comment/6035f3f10dde8f7722d1f014#reply-6036238105efef7f0a9d315d)

I could think of a gazillion reasons, so this is difficult to answer - but my strategy is usually to first narrow it down (request to API is working? database connected? etc..). Good luck with finding the bug 🐞

[Rahul](https://hashnode.com/@RAHULISM)

[Feb 24, 2021](https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e/comment/6035d6840dde8f7722d1edac)

This series is more than amazing. I am also learning MERN and this is gonna bee so much helpful and though I love to read personal documentations 😅.

Just discovered this series sooo late. This is at the top of my reading list. Reading and understanding 2 posts everyday alongside my projects.

Thank you once again for this series.

[marayana](https://hashnode.com/@marayana)

[Feb 24, 2021](https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e/comment/6035d6840dde8f7722d1edac#reply-603621320c99f77f2f8a552d)

Great to hear you find it helpful. You're not too late to the party, 100 days is a lot... I hope that from Day 50 onwards, I can replace the research and documentation with short tutorials for some mini-projects, but I'll see how it goes.

[Rahul](https://hashnode.com/@RAHULISM)

[Feb 24, 2021](https://hashnode.com/posts/100daysofmern-day-35/603539e90dde8f7722d1e46e/comment/6035d6840dde8f7722d1edac#reply-603623a70c99f77f2f8a5573)

I'm in love with these articles literally. $5 [Course](https://www.udemy.com/course/mern-stack-front-to-back/?ranMID=39197&ranEAID=JVFxdTr9V80&ranSiteID=JVFxdTr9V80-asWRfJty9Rdo2zDddaSeqw&LSNPUBID=JVFxdTr9V80&utm_source=aff-campaign&utm_medium=udemyads) with these documentation is a great combo tho. [jsdisco](https://hashnode.com/@jsdisco)
