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
component specs, this error will show in the terminal
FAIL src/components/header/header.spec.jsx
Header Component
✕ should not be null (33ms)
● Header Component › should not be null
TypeError: Cannot read property 'history' of undefined
10 |
11 | beforeEach(() => {
> 12 | header = mount(<Header/>);
13 | });
14 |
15 | // TODO fix why bombs out because of <Link> being used in the component
at new GatsbyLink (node_modules/gatsby-link/index.js:107:34)
at node_modules/react-dom/lib/ReactCompositeComponent.js:292:18
at measureLifeCyclePerf (node_modules/react-dom/lib/ReactCompositeComponent.js:73:12)
This is the same for any other component, and seems to have to do something with Gatsby providing some sort of functionality under the hood in the app?
Anyway, solving this would be ideal since it is preventing the app from having better code coverage.
The text was updated successfully, but these errors were encountered:
So if you enable the
component specs, this error will show in the terminalThis is the same for any other component, and seems to have to do something with Gatsby providing some sort of functionality under the hood in the app?
Anyway, solving this would be ideal since it is preventing the app from having better code coverage.
The text was updated successfully, but these errors were encountered: