Skip to content

Commit 0816692

Browse files
Gavinchen92SimenB
authored andcommitted
Update Es6ClassMocks.md (#5402)
1 parent 922b037 commit 0816692

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/Es6ClassMocks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Import the mock and the mock method shared by all instances:
101101
```javascript
102102
// sound-player-consumer.test.js
103103
import SoundPlayer, { mockPlaySoundFile } from './sound-player';
104+
import SoundPlayerConsumer from './sound-player-consumer';
104105
jest.mock('./sound-player'); // SoundPlayer is now a mock constructor
105106

106107
beforeEach(() => {

0 commit comments

Comments
 (0)