Am I just being paranoid or do you agree? I was wondering if you might share with us how you handle the mocking of your api modules either in my comment here or as another blog post?
I really liked this article.
Zac Braddy
13

I just use `sinon` and mock only the functions I need on the fly. But if you wanted to mock out entire modules, I’d recommend using webpack’s resolve alias functionality:

https://webpack.github.io/docs/configuration.html#resolve-alias

Like what you read? Give Chet Corcos a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.