Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f889323

Browse files
authored
Merge pull request #46 from Nek-/patch-2
2 parents ce8c54d + 0b1922e commit f889323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎7-testing/7.4-mocking-rn-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you would like to un-mock a file and read the real source code instead of moc
2828
### Example of automock:
2929
Let's say you want to mock the functions exposed by a Node.js module called `react-native-exception-handler`
3030

31-
Since it is a node_module, we would need to put the mock file inside `__mocks__/react-native-exception-handler`. Refer to the tree above to know where this file will lie.
31+
Since it is a node\_module, we would need to put the mock file inside `__mocks__/react-native-exception-handler`. Refer to the tree above to know where this file will lie.
3232

3333
To automock the module, our file would look something like this:
3434
>\_\_mocks__/react-native-exception-handler.js

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /