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
I have Storybook configured in my project alongside storyshots addon. I already have some stories and I can execute storybooks without problems. But when I run tests I see the following error:
TypeError: Cannot read property 'scrollTop' of null
at t.getScroll (node_modules/@dorna-its/react-blueprintjs-toolkit/node_modules/react-data-grid/dist/react-data-grid.js:1:115316)
at t.getScroll (node_modules/@dorna-its/react-blueprintjs-toolkit/node_modules/react-data-grid/dist/react-data-grid.js:1:105102)
at t.e (node_modules/@dorna-its/react-blueprintjs-toolkit/node_modules/react-data-grid/dist/react-data-grid.js:1:81789)
at commitLifeCycles (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10428:22)
at commitLayoutEffects (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13295:7)
at HTMLUnknownElement.callCallback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9972:14)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27)
at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21)
at Object.invokeGuardedCallbackDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10021:16)
at invokeGuardedCallback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10073:31)
at commitRootImpl (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13033:9)
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:653:12)
at runWithPriority (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1775:10)
at commitRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12873:3)
at finishSyncRender (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12384:3)
at performSyncWorkOnRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:12370:7)
at node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1825:24
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:653:12)
at runWithPriority (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1775:10)
at flushSyncCallbackQueueImpl (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1820:7)
at flushSyncCallbackQueue (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1808:3)
at scheduleUpdateOnFiber (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11776:9)
at updateContainer (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14747:3)
at create (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15455:5)
at getRenderedTree (node_modules/@storybook/addon-storyshots/dist/frameworks/react/renderTree.js:23:16)
at node_modules/@storybook/addon-storyshots/dist/test-bodies.js:10:22
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/api/snapshotsTestsTemplate.js:42:20)
The story code (this is not the actual code, but it does not work anyway):
This discussion was converted from issue #2050 on August 17, 2021 17:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have Storybook configured in my project alongside storyshots addon. I already have some stories and I can execute storybooks without problems. But when I run tests I see the following error:
The story code (this is not the actual code, but it does not work anyway):
Packages:
Any idea? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions