Closed code-masala closed 2 years ago
when I am doing testing using jest in svelteKit . Error: TypeError: Cannot destructure property 'checkPropTypes' of 'pkg' as it is undefined.
TypeError: Cannot destructure property 'checkPropTypes' of 'pkg' as it is undefined.
is this related to prop-types or jest?
Certainly not prop-types - you can try here https://runkit.com/npm/prop-types
prop-types
Perhaps you mocked out the module incorrectly?
when I am doing testing using jest in svelteKit . Error:
TypeError: Cannot destructure property 'checkPropTypes' of 'pkg' as it is undefined.