We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hi!
Just tried out 4.2.2 with Svelte 5 and I am getting a "TypeError: act is not a function".
I believe the corresponding code is this:
svelte-testing-library/src/svelte5-index.js
Line 2 in 40feeb4
Because svelte5.js exports render and cleanup, not act.
svelte5.js
render
cleanup
act
Locally, I've imported act from pure.js, but I don't know if that's the intention (otherwise I would have PR'd instead of just opening a ticket).
import { act } from "./pure.js" import { cleanup } from './svelte5.js'
The text was updated successfully, but these errors were encountered:
Intention is to be able to replace @testing-library/svelte with @testing-library/svelte/svelte5. That import line is certainly incorrect
@testing-library/svelte
@testing-library/svelte/svelte5
I've opened #346 to fix the issue
Sorry, something went wrong.
@yanick we're good to close this one out, too! I must've forgotten to add the ticket number to the commit message or something
Gotcha. And out it goes!
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hi!
Just tried out 4.2.2 with Svelte 5 and I am getting a "TypeError: act is not a function".
I believe the corresponding code is this:
svelte-testing-library/src/svelte5-index.js
Line 2 in 40feeb4
Because
svelte5.js
exportsrender
andcleanup
, notact
.Locally, I've imported
act
from pure.js, but I don't know if that's the intention (otherwise I would have PR'd instead of just opening a ticket).The text was updated successfully, but these errors were encountered: