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 am getting a TypeError: Cannot read property 'hasOwnProperty' of undefined
at
import{Adapter}from"enzyme-adapter-preact"
node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js:276:27 at Object.<anonymous> (node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js:943:5) at Object.<anonymous> (node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/shallow.js:6:20) at Object.<anonymous> (node_modules/enzyme-adapter-preact/lib/PreactAdapter.js:20:16) at Object.<anonymous> (node_modules/enzyme-adapter-preact/lib/index.js:7:22)
The text was updated successfully, but these errors were encountered:
I noticed that node_modules/enzyme-adapter-preact/lib/PreactAdapter.js:20:16 was requiring react-test-renderer/shallow, so I added this to my jest.config and it seems to have fixed the issue:
I am getting a
TypeError: Cannot read property 'hasOwnProperty' of undefined
at
node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js:276:27 at Object.<anonymous> (node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js:943:5) at Object.<anonymous> (node_modules/enzyme-adapter-preact/node_modules/react-test-renderer/shallow.js:6:20) at Object.<anonymous> (node_modules/enzyme-adapter-preact/lib/PreactAdapter.js:20:16) at Object.<anonymous> (node_modules/enzyme-adapter-preact/lib/index.js:7:22)
The text was updated successfully, but these errors were encountered: