Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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