Skip to content

Commit f708914

Browse files
remove avoid
1 parent 3c8709d commit f708914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/testing/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ Jest includes most of Sinon's features with a simpler API:
11601160
- Use `jest.spyOn(object, method)` instead of `sinon.spy(object, method)` or `sinon.stub(object, method)`. (Note: The spied method will still be called by default.)
11611161
- Use `jest.useFakeTimers()` instead of `sinon.useFakeTimers()`. (Note: Jest's "clock" object had fewer features than Sinon's before Jest v29.5.)
11621162

1163-
## Avoid general manual mocks
1163+
## General manual mocks
11641164

11651165
Jest's documentation states: "Manual mocks are defined by writing a module in a `__mocks__/` subdirectory immediately". Jest automatically picks up these mocks for all tests. Be very careful when writing manual mocks because they are shared across all tests (including UI integration tests).
11661166

0 commit comments

Comments
 (0)