-
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
"SyntaxError: Cannot use import statement outside a module" running jest #70
Comments
We’re getting this same error while running our tests. Tests pass when using version 2.0.1 of this package, but fail in 3.0.0. |
Hi, seems it comes from the
it should be not sure the change was intended. workaround: |
Any update here? This seems to completely block me from using the preact testing-library. Since this ticket is relatively old, I'm wondering if this library is not well-supported? If so, can someone point me to a better tool to use for testing preact components? |
@testing-library/preact
version:3.2.3
preact
version:10.13.2
node
version:18.14.0
npm
version:9.3.1
What happened:
Starting with
v3.1.0
i have problems running my tests with jest.When running jest i get following error:
The text was updated successfully, but these errors were encountered: