diff --git a/docs/ManualMocks.md b/docs/ManualMocks.md index 2d4f549f9c63..f3da20638962 100644 --- a/docs/ManualMocks.md +++ b/docs/ManualMocks.md @@ -9,7 +9,7 @@ Manual mocks are used to stub out functionality with mock data. For example, ins Manual mocks are defined by writing a module in a `__mocks__/` subdirectory immediately adjacent to the module. For example, to mock a module called `user` in the `models` directory, create a file called `user.js` and put it in the `models/__mocks__` directory. Note that the `__mocks__` folder is case-sensitive, so naming the directory `__MOCKS__` will break on some systems. -> When we require that module in our tests, then explicitly calling `jest.mock('./moduleName')` is **required**. +> When we require that module in our tests, explicitly calling `jest.mock('./moduleName')` is **required**. ## Mocking Node modules diff --git a/website/versioned_docs/version-22.x/ManualMocks.md b/website/versioned_docs/version-22.x/ManualMocks.md index 3f3f5a8d4180..5168e970bda0 100644 --- a/website/versioned_docs/version-22.x/ManualMocks.md +++ b/website/versioned_docs/version-22.x/ManualMocks.md @@ -10,7 +10,7 @@ Manual mocks are used to stub out functionality with mock data. For example, ins Manual mocks are defined by writing a module in a `__mocks__/` subdirectory immediately adjacent to the module. For example, to mock a module called `user` in the `models` directory, create a file called `user.js` and put it in the `models/__mocks__` directory. Note that the `__mocks__` folder is case-sensitive, so naming the directory `__MOCKS__` will break on some systems. -> When we require that module in our tests, then explicitly calling `jest.mock('./moduleName')` is **required**. +> When we require that module in our tests, explicitly calling `jest.mock('./moduleName')` is **required**. ## Mocking Node modules diff --git a/website/versioned_docs/version-23.x/ManualMocks.md b/website/versioned_docs/version-23.x/ManualMocks.md index 86f0a7f0ddbe..1dc9d0aaeda9 100644 --- a/website/versioned_docs/version-23.x/ManualMocks.md +++ b/website/versioned_docs/version-23.x/ManualMocks.md @@ -10,7 +10,7 @@ Manual mocks are used to stub out functionality with mock data. For example, ins Manual mocks are defined by writing a module in a `__mocks__/` subdirectory immediately adjacent to the module. For example, to mock a module called `user` in the `models` directory, create a file called `user.js` and put it in the `models/__mocks__` directory. Note that the `__mocks__` folder is case-sensitive, so naming the directory `__MOCKS__` will break on some systems. -> When we require that module in our tests, then explicitly calling `jest.mock('./moduleName')` is **required**. +> When we require that module in our tests, explicitly calling `jest.mock('./moduleName')` is **required**. ## Mocking Node modules