-
Notifications
You must be signed in to change notification settings - Fork 38
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 ESM support #50
Comments
Ah, my Preact hook tests are broken because of this :) |
🎉 This issue has been resolved in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@sheremet-va is this working for you? Not working at my end, I am afraid :( Fails in Vitest with:
(
export default {
test: {
globals: false,
},
};
===>
(basically, the system seems to be confused between As mentioned here vitest-dev/vitest#747 (comment) |
@danielweck this should be fixed now sorry about that |
Brilliant, all good now :) |
preact-testing-library
version: 2.0.1preact
version: anynode
version: anynpm
(oryarn
) version: anyProblem description:
This package doesn't have ESM support. This is needed for
vitest
to properly loadESM
version of preact: related issueSuggested solution:
Bundle ESM and add it to
exports
field, so Node can resolve it automatically.The text was updated successfully, but these errors were encountered: