---
title: "Discussion on \"Day 2 Overview: Mocks\" | Hashnode"
description: "Discussion on \"Day 2 Overview: Mocks\". Mocks\n\nMonkey Patch a Mock Exercise\nFor this next section on mocks, I'll use another example to start formulating the concept of what mocks are and when they should be used. Let’s check out the following code to start the process:\nimport {getWinner} ..."
url: "https://hashnode.com/posts/day-2-overview-mocks/64de454de45866d600162e28"
---

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

Discussion

# [Day 2 Overview: Mocks](https://blog.cesartheroman.com/day-2-overview-mocks?utm_source=hashnode&utm_medium=feed)

Mocks Monkey Patch a Mock Exercise For this next section on mocks, I'll use another example to start formulating the concept of what mocks are and when they should be used. Let’s check out the following code to start the process: import {getWinner} ...

Aug 17, 2023 · 11 min read · blog.cesartheroman.com  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#jest](https://hashnode.com/tag/jest)
-   [#mocking](https://hashnode.com/tag/mocking)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Cesar Roman](https://hashnode.com/@cesartheroman)

@cesartheroman · Chicago, IL

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

Full stack software engineer

I'm a Chicago-based, "Boogie Down Bronx" raised, full stack software engineer specializing in JavaScript, TypeScript, React, and Node. Currently, I'm a free agent looking to join an exciting tech company with strong leadership, team culture, and growth opportunities!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
