Skip to content

Commit

Permalink
Add note to automock configuration (#8051)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelw85 authored and SimenB committed Mar 5, 2019
1 parent cb50b67 commit d23f1ef
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -87,6 +87,7 @@
- `[docs]`: Improve runAllTimers doc (it exhausts the micro-task queue) ([#8031](https://github.com/facebook/jest/pull/8031))
- `[jest-cli]`: Migrate to TypeScript ([#8024](https://github.com/facebook/jest/pull/8024))
- `[jest]`: Migrate to TypeScript ([#8024](https://github.com/facebook/jest/pull/8024))
- `[docs]` Update automock configuration, add note related to manual mocks ([#8051](https://github.com/facebook/jest/pull/8051))

### Performance

Expand Down
2 changes: 2 additions & 0 deletions docs/Configuration.md
Expand Up @@ -95,6 +95,8 @@ test('if utils mocked automatically', () => {
});
```

_Note: Node modules are automatically mocked when you have a manual mock in place (e.g.: `__mocks__/lodash.js`). More info [here](manual-mocks.html#mocking-node-modules)._

_Note: Core modules, like `fs`, are not mocked by default. They can be mocked explicitly, like `jest.mock('fs')`._

_Note: Automocking has a performance cost most noticeable in large projects. See [here](troubleshooting.html#tests-are-slow-when-leveraging-automocking) for details and a workaround._
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.x/Configuration.md
Expand Up @@ -82,6 +82,8 @@ test('if utils mocked automatically', () => {
});
```

_Note: Node modules are automatically mocked when you have a manual mock in place (e.g.: `__mocks__/lodash.js`). More info [here](manual-mocks.html#mocking-node-modules)._

_Note: Core modules, like `fs`, are not mocked by default. They can be mocked explicitly, like `jest.mock('fs')`._

_Note: Automocking has a performance cost most noticeable in large projects. See [here](troubleshooting.html#tests-are-slow-when-leveraging-automocking) for details and a workaround._
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.x/Configuration.md
Expand Up @@ -96,6 +96,8 @@ test('if utils mocked automatically', () => {
});
```

_Note: Node modules are automatically mocked when you have a manual mock in place (e.g.: `__mocks__/lodash.js`). More info [here](manual-mocks.html#mocking-node-modules)._

_Note: Core modules, like `fs`, are not mocked by default. They can be mocked explicitly, like `jest.mock('fs')`._

_Note: Automocking has a performance cost most noticeable in large projects. See [here](troubleshooting.html#tests-are-slow-when-leveraging-automocking) for details and a workaround._
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-24.0/Configuration.md
Expand Up @@ -96,6 +96,8 @@ test('if utils mocked automatically', () => {
});
```

_Note: Node modules are automatically mocked when you have a manual mock in place (e.g.: `__mocks__/lodash.js`). More info [here](manual-mocks.html#mocking-node-modules)._

_Note: Core modules, like `fs`, are not mocked by default. They can be mocked explicitly, like `jest.mock('fs')`._

_Note: Automocking has a performance cost most noticeable in large projects. See [here](troubleshooting.html#tests-are-slow-when-leveraging-automocking) for details and a workaround._
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-24.1/Configuration.md
Expand Up @@ -96,6 +96,8 @@ test('if utils mocked automatically', () => {
});
```

_Note: Node modules are automatically mocked when you have a manual mock in place (e.g.: `__mocks__/lodash.js`). More info [here](manual-mocks.html#mocking-node-modules)._

_Note: Core modules, like `fs`, are not mocked by default. They can be mocked explicitly, like `jest.mock('fs')`._

_Note: Automocking has a performance cost most noticeable in large projects. See [here](troubleshooting.html#tests-are-slow-when-leveraging-automocking) for details and a workaround._
Expand Down

0 comments on commit d23f1ef

Please sign in to comment.