testing-library / svelte-testing-library

:chipmunk: Simple and complete Svelte DOM testing utilities that encourage good testing practices
https://testing-library.com/docs/svelte-testing-library/intro
MIT License
608 stars 34 forks source link

docs(core): add readme for core API #382

Closed mcous closed 1 day ago

mcous commented 1 week ago

In order to support the new threlte/test-renderer, exposing the low-level rendering and cleanup core of @testing-library/svelte will allow the two projects to share a bunch of common logic, and provide a better experience for users writing tests for Svelte applications with Threlte.

This PR adds the proposed documentation for this core as a little form of README-driven-development. I've taken a look at the Threlte test-renderer source code, and I think these methods would allow a lot of good functionality re-use while remaining flexible to both projects' needs

Rendered output

mcous commented 1 day ago

Closing in favor of #391