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
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.
The text was updated successfully, but these errors were encountered:
When trying to test a component using svelte-error-boundary under Jest, I get the following error:
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.The text was updated successfully, but these errors were encountered: