Closed mrdbeck closed 9 years ago
anyone?
Same here. Tried everything I could find online but tests do not run. Looks like my rendered component is empty because I get
Error: Did not find exactly one match (found: 0) for class:Tabs
for TestUtils.findRenderedDOMComponentWithClass(instance, 'Tabs');
1.0 API no longer requires context for links to render
@mrdbeck @zemirco If you are still struggling and also, like me, stuck on pre-1.0 API versions, have a read of my answer on StackOverflow - http://stackoverflow.com/a/32246097/330824.
The short version, in Dan's case, is that categoriesWithContext should be called CategoriesWithContext. The posted code should then work.
Hi,
I am have a nightmare with getting one of my components to pull through when testing, below is the code:
Component
test (renders into doc passes, links are failing)
stubRouterContext
Any help would be greatly appreciated.