We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91357d commit 50da68aCopy full SHA for 50da68a
docs/guides/testing.md
@@ -76,8 +76,13 @@ React.render(<TestWrapper/>, testElement);
76
```
77
78
This is handy because now you can force the code down certain paths if
79
-you add some behavior to the stubbed context. It's also a lot of junk to
80
-write, copy/paste this into your test utils to make things a bit easier:
+you add some behavior to the stubbed context. But It's also a lot of junk to
+write.
81
+
82
+`stubRouterContext`
83
+-------------------
84
85
+Copy/paste this helper into your test utils to make things a bit easier:
86
87
```js
88
var stubRouterContext = (Component, props, stubs) => {
0 commit comments