We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11bda6 commit c70f29eCopy full SHA for c70f29e
docs/ManualMocks.md
@@ -53,8 +53,9 @@ accordingly.
53
```
54
55
When a manual mock exists for a given module, Jest's module system will use that
56
-module when explicitly calling `jest.mock('moduleName')`. However, manual mocks
57
-will take precedence over node modules even if `jest.mock('moduleName')` is not
+module when explicitly calling `jest.mock('moduleName')`. However, when
+`automock` is set to `true`, the manual mock implementation will be used instead
58
+of the automatically created mock, even if `jest.mock('moduleName')` is not
59
called. To opt out of this behavior you will need to explicitly call
60
`jest.unmock('moduleName')` in tests that should use the actual module
61
implementation.
0 commit comments