Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use with Jest #8

Open
nornagon opened this issue Aug 29, 2021 · 0 comments
Open

Can't use with Jest #8

nornagon opened this issue Aug 29, 2021 · 0 comments

Comments

@nornagon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant