-
Notifications
You must be signed in to change notification settings - Fork 85
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
Problem using browser-fs-access
in jest
#42
Comments
Sorry, I'm not familiar with Jest, but jestjs/jest#2550 (comment) is the right place to ask your question. |
It looks like using @Pet3ris' solution after upgrading to browser-fs-access v0.18.1 solves the issue. (#55)
|
To my great shame, I had to resort to bundling this package to commonjs. |
I’m not really into bundling, but I know there’s a way to publish several builds in the same |
Happy to do so! The fork uses esbuild to bundle into ESM and CJS modules, which I think is what you're describing too. The only modifications were replacing your slick |
Awesome, thanks a ton! I have created #82 to track this. |
It appears that the |
We may want to revisit bundling. It looks like microbundle is the current go-to option. I have opened #94 to track this. If you have time, feel free to work on a PR that fixes this, but else, I'll also eventually get to it, but need to deal with things that popped up during my recent time off. |
Hi There,
I'm using jest for testing and having trouble with importing the
browser-fs-access
library.This seems to be a common issue, documented here: jestjs/jest#2550, however, the common solutions don't work.
I tried to use the following configuration parameter to account for presence of
mjs
files but still getting the same error. Any thoughts on how to allow jest to successfully compilebrowser-fs-access
?The text was updated successfully, but these errors were encountered: