You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 7-testing/7.4-mocking-rn-modules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ If you would like to un-mock a file and read the real source code instead of moc
28
28
### Example of automock:
29
29
Let's say you want to mock the functions exposed by a Node.js module called `react-native-exception-handler`
30
30
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.
32
32
33
33
To automock the module, our file would look something like this:
0 commit comments