Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How did I not know about this?! #340

wrex started this conversation in General
Dec 17, 2021 · 1 comments · 1 reply
Discussion options

Just a bit of fan mail.

I was struggling with a jest/testing-library matcher and eventually stumbled across a passing reference to screen.logTestingPlaygroundURL() while reading the testing-library docs.

My jaw hit the floor when I pasted in the url, started typing the matcher into the textbox below, and IMMEDIATELY saw a recommended matcher pop up that worked perfectly for what I was trying to do. I can't believe I didn't know about this!

I'm honestly shocked that I'd never even heard of this before. Brilliant! Thanks a million.

This deserves to be MUCH more prominent on the testing-library site.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Thank you so much for the kind words. Seriously, it me as a lot. ❤️

Is there a specific location in the docs that you have in mind which would improve the visibility of testing playground? We all benefit from an easy as possible onboarding & developer experience.

The docs are open source as well. If you have the time, feel free to submit a change.

Thanks again.

You must be logged in to vote
1 reply
Comment options

No kidding, this thing has saved me a ton of work and is actually kind of fun.

I will submit a PR as soon as I finish a project I'm working on. I think the main thing is a screenshot or two of what the testing playground actually looks like and lets you see (easily!).

It's made writing tests for some form components infinitely easier. Seriously great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /