diff --git a/docs/Es6ClassMocks.md b/docs/Es6ClassMocks.md index 31ce34423fa2..a0b744eb5cdc 100644 --- a/docs/Es6ClassMocks.md +++ b/docs/Es6ClassMocks.md @@ -155,6 +155,8 @@ Calls to jest.mock are hoisted to the top of the code. You can specify a mock la ```javascript import SoundPlayer from './sound-player'; +import SoundPlayerConsumer from './sound-player-consumer'; + jest.mock('./sound-player'); describe('When SoundPlayer throws an error', () => {