-
Notifications
You must be signed in to change notification settings - Fork 1
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
Proposal: share core rendering logic with @testing-library/svelte
#3
Comments
Hello! This package exists basically to provide a lightweight wrapper for At the time of creating this package, |
Another important reason is cleaning up before the test so we can show the preview, of course! |
Figured that might be the case, and very reasonable! I like the idea of splitting
It's a very nice touch, for sure |
Looks like I have a viable path forward on splitting the packages out! I'll move forward with splitting out the rendering core on a prerelease dist tag and open a preliminary PR here once that's done Feel free to close this issue out if it's not helpful from a tracking standpoint |
👋 hey, I'm the maintainer over at
@testing-library/svelte
and I noticed y'all forked thecore
directory over to this repo! I think this makes a lot of sense; there's no need for the@testing-library/dom
/ fake event stuff in Vitest's browser mode, and you can get tighter integration with test hooks in a way that's harder to do in a test-runner agnostic library like@testing-library/svelte
.Before I saw this fork, I'd been toying with the idea exposing
@testing-library/svelte/core
as an entry point to provide:target
preparationcleanup
functionOriginally the motivation was to help out with @threlte/test-renderer, but I think it could be helpful here, too. (See work-in-progress PR if you're curious)
If I was to move forward with the work of exposing
@testing-library/svelte/core
, would you be interested in replacing the duplicated logic incore
directory ofvitest-browser-svelte
with a dependency on@testing-library/svelte
?P.S. I find myself directing users of
@testing-library/svelte
to Vitest's browser mode more and more, and we're about to start using it at my work, so if there's any maintenance help I can offer here invitest-browser-svelte
, let me know!The text was updated successfully, but these errors were encountered: