Skip to content

Commit

Permalink
Add missing import to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
egdbear committed Feb 18, 2019
1 parent d62167d commit bab907d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -45,6 +45,7 @@
- `[babel-plugin-jest-hoist]`: Migrate to TypeScript ([#7898](https://github.com/facebook/jest/pull/7898))
- `[@jest/core]` Create new package, which is `jest-cli` minus `yargs` and `prompts` ([#7696](https://github.com/facebook/jest/pull/7696))
- `[@jest/transform]`: Migrate to TypeScript ([#7918](https://github.com/facebook/jest/pull/7918))
- `[docs]` Add missing import to docs ([#7928](https://github.com/facebook/jest/pull/7928))

### Performance

Expand Down
2 changes: 2 additions & 0 deletions docs/Es6ClassMocks.md
Expand Up @@ -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', () => {
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.x/Es6ClassMocks.md
Expand Up @@ -156,6 +156,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', () => {
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-24.0/Es6ClassMocks.md
Expand Up @@ -156,6 +156,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', () => {
Expand Down

0 comments on commit bab907d

Please sign in to comment.