testing-library / testing-library-docs

docs site for @testing-library/*
https://testing-library.com
MIT License
451 stars 698 forks source link

Improving and Diversifying the Testing Library Recipes #734

Open ITenthusiasm opened 3 years ago

ITenthusiasm commented 3 years ago

Hi all! I was thinking of adding/migrating some examples of Vue Testing Library (VTL) to the Testing Library docs so people could easily find ways to handle some common use cases. I thought the best place for that would be the recipes. But there's no folder-like structure, and most of the examples seem to be React-related.

So I'm looking for some guidance. Are there any thoughts on how the recipes should be structured to accommodate the entire testing library ecosystem? Or should everything be put under an "Examples" tab under each framework on the docs page? (Or should examples be put on GitHub? It seems some libraries do that.) There seems to be some inconsistency between frameworks. So I just wanted to verify "the ideal" before doing anything.

alexkrolick commented 3 years ago

I would start by writing the example and adding it to the Recipes > Examples list. We can then re-organize the content.