kutlugsahin/react-smooth-dnd

Jest test fails on components using react-smooth-dnd (Illegal invocation)

pmark019 opened this issue · 0 comments

Has anyone encountered an error when running a test on a component with a child component that uses react-smooth-dnd?

Here is the error I get

`
Test suite failed to run

TypeError: Illegal invocation

  at Node.get [as childNodes] (node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/generated/Node.js:423:13)
  at Node.get (node_modules/smooth-dnd/dist/index.js:1:11555)
  at node_modules/smooth-dnd/dist/index.js:1:11449
  at node_modules/smooth-dnd/dist/index.js:1:158
  at Object.<anonymous> (node_modules/smooth-dnd/dist/index.js:1:257)
  at node_modules/react-smooth-dnd/dist/index.js:1:207

`