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
whenever i try to run mocha test i get below error,
ReferenceError: SVGElement is not defined
at Draggable.componentDidMount (node_modules/react-draggable/dist/react-draggable.js:199:63)
at CallbackQueue.assign.notifyAll (node_modules/react/lib/CallbackQueue.js:65:22)
at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (node_modules/react/lib/ReactReconcileTransaction.js:81:26)
at ReactReconcileTransaction.Mixin.closeAll (node_modules/react/lib/Transaction.js:202:25)
at ReactReconcileTransaction.Mixin.perform (node_modules/react/lib/Transaction.js:149:16)
at batchedMountComponentIntoNode (node_modules/react/lib/ReactMount.js:282:15)
at ReactDefaultBatchingStrategyTransaction.Mixin.perform (node_modules/react/lib/Transaction.js:136:20)
at Object.ReactDefaultBatchingStrategy.batchedUpdates (node_modules/react/lib/ReactDefaultBatchingStrategy.js:62:19)
at Object.batchedUpdates (node_modules/react/lib/ReactUpdates.js:94:20)
at Object.ReactMount._renderNewRootComponent (node_modules/react/lib/ReactMount.js:476:18)
at Object.wrapper as _renderNewRootComponent
at Object.ReactMount._renderSubtreeIntoContainer (node_modules/react/lib/ReactMount.js:550:32)
at Object.ReactMount.render (node_modules/react/lib/ReactMount.js:570:23)
at Object.wrapper as render
at Object.ReactTestUtils.renderIntoDocument (node_modules/react/lib/ReactTestUtils.js:76:21)
at Context. (test/quickNoteTest.js:27:39)
Any thoughts ?
The text was updated successfully, but these errors were encountered:
@pkumar84 I am having the same problem. For now a workaround that made my tests pass again was adding global.SVGElement = function(){} after jsdom initialisation.
Dear Developers,
whenever i try to run mocha test i get below error,
ReferenceError: SVGElement is not defined
at Draggable.componentDidMount (node_modules/react-draggable/dist/react-draggable.js:199:63)
at CallbackQueue.assign.notifyAll (node_modules/react/lib/CallbackQueue.js:65:22)
at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (node_modules/react/lib/ReactReconcileTransaction.js:81:26)
at ReactReconcileTransaction.Mixin.closeAll (node_modules/react/lib/Transaction.js:202:25)
at ReactReconcileTransaction.Mixin.perform (node_modules/react/lib/Transaction.js:149:16)
at batchedMountComponentIntoNode (node_modules/react/lib/ReactMount.js:282:15)
at ReactDefaultBatchingStrategyTransaction.Mixin.perform (node_modules/react/lib/Transaction.js:136:20)
at Object.ReactDefaultBatchingStrategy.batchedUpdates (node_modules/react/lib/ReactDefaultBatchingStrategy.js:62:19)
at Object.batchedUpdates (node_modules/react/lib/ReactUpdates.js:94:20)
at Object.ReactMount._renderNewRootComponent (node_modules/react/lib/ReactMount.js:476:18)
at Object.wrapper as _renderNewRootComponent
at Object.ReactMount._renderSubtreeIntoContainer (node_modules/react/lib/ReactMount.js:550:32)
at Object.ReactMount.render (node_modules/react/lib/ReactMount.js:570:23)
at Object.wrapper as render
at Object.ReactTestUtils.renderIntoDocument (node_modules/react/lib/ReactTestUtils.js:76:21)
at Context. (test/quickNoteTest.js:27:39)
Any thoughts ?
The text was updated successfully, but these errors were encountered: