Timeline for How to mock an encapsulated dependency with Jest?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2021 at 10:14 | comment | added | Uchenna Iheanacho | @RyanPeterson Thanks for clarifying. I have updated the answer to add more clarity. Hope it helps | |
Oct 18, 2021 at 10:12 | history | edited | Uchenna Iheanacho | CC BY-SA 4.0 |
added 72 characters in body
|
Oct 13, 2021 at 11:28 | comment | added | Ryan Peterson | All test cases will need to mock the return value in different ways. I just don't want one test to affect another test. I have updated the question to hopefully clarify | |
Oct 13, 2021 at 11:22 | history | answered | Uchenna Iheanacho | CC BY-SA 4.0 |