We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbe9f9 commit d182f8bCopy full SHA for d182f8b
1 file changed
test/components/root.spec.jsx
@@ -6,8 +6,24 @@ chai.use(chaiEnzyme())
6
7
import Root from '../../src/components/root.jsx'
8
9
+// this fails with:
10
+// Invariant Violation: Could not find "store" in either the context or props of
11
+// "Connect(Counter)". Either wrap the root component in a <Provider>, or
12
+// explicitly pass "store" as a prop to "Connect(Counter)".
13
+
14
const output = shallow(<Root />)
15
16
+// FWIW, this also fails with the same error:
17
18
+// import { Provider } from 'react-redux'
19
+// import makeStore from '../../src/store'
20
+// const store = makeStore()
21
+// const output = shallow(
22
+// <Provider store={store} >
23
+// <Root />
24
+// </Provider>
25
+// )
26
27
exports['<Root />'] = {
28
'is a <div>': () => expect(output).to.have.tagName('div'),
29
}
0 commit comments