A safe way to ensure a module is always mocked #5682
-
I use Twilio to send SMS. Under no circumstance do I not want to mock this module. I had a recent mishap where an API endpoint was initially not sending SMS, but then I added SMS sending. I forgot to What is the best way to ensure that no matter what, a module is always mocked? |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
May 7, 2024
Replies: 1 comment
-
You can add |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
revosw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add
vi.mock('twilio')
tosetupFiles