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

Add setup guide for Jest and this library #271

Open
RogierdeRuijter opened this issue Apr 25, 2021 · 1 comment
Open

Add setup guide for Jest and this library #271

RogierdeRuijter opened this issue Apr 25, 2021 · 1 comment

Comments

@RogierdeRuijter
Copy link

RogierdeRuijter commented Apr 25, 2021

In my Svelte app running test with Jest fails because the index file is of this library is of type 'mjs'.

The following error is thrown:

> jest src

 FAIL  src/App.test.js
  ● Test suite failed to run

    Cannot find module 'svelte-websocket-store' from 'src/App.svelte'

It would be nice if you could add a section to the Readme explaining how to setup Jest properly to work with this library.

@RogierdeRuijter
Copy link
Author

This might be a difficult problem to solve since this a longer running issue as you can see here jestjs/jest#9430

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