svelte-error-boundary icon indicating copy to clipboard operation
svelte-error-boundary copied to clipboard

Can't use with Jest

Open nornagon opened this issue 3 years ago • 0 comments

When trying to test a component using svelte-error-boundary under Jest, I get the following error:

    Cannot find module '@crownframework/svelte-error-boundary' from 'src/Thing.svelte'

I think this is because the "main" field in package.json is incorrect. Additionally, the index.js file uses module syntax, which confuses Jest—it expects the module to be compiled, I think.

nornagon avatar Aug 29 '21 17:08 nornagon