Description
👋 hey, I'm the maintainer over at @testing-library/svelte
and I noticed y'all forked the core
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:
- Argument checking
- DOM
target
preparation - Svelte-version-agnostic mounting logic and type signatures
- A manual
cleanup
function
Originally 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 in core
directory of vitest-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 in vitest-browser-svelte
, let me know!