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
- The text or divs that you expect to be on the page are actually there.
92
+
- a previously saved snapshot of the HTML matches a snapshot taken during testing.
93
+
- what else?? help!
94
+
81
95
### For Redux action creators or reducers
82
96
See the [redux section](#Testing-Redux) below :)
83
97
@@ -244,10 +258,10 @@ This folder contains the inital redux states that you can provide to the ``redux
244
258
245
259
### jest configs in package.json
246
260
247
-
this i dont know much about yet but want to understand
261
+
in progress
248
262
249
263
## Testing plain components
250
-
If it doesn't contain ``connect(mapStateToProps, mapDispatchToProps)(ComponentName)`` or use hooks like ``useSelector``, then your component is not connected to Redux and testing your component will be simpler and might look something like this:
264
+
If it doesn't contain ``connect(mapStateToProps, mapDispatchToProps)(ComponentName)`` or use hooks like ``useSelector``, then your component is not directly using Redux and testing your component will be simpler and might look something like this:
251
265
252
266
```
253
267
import React from 'react';
@@ -319,17 +333,6 @@ Consider what you want to test. Some possible things might be:
0 commit comments