Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing import to docs #7928

Merged
merged 1 commit into from Feb 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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