-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add @testing-library to the default templates #7881
Conversation
I think I've done something wrong, but I'm not sure what 😅 |
Hi @kentcdodds, I see you broke everything! 😆 This is probably because we've merged in our new templates... #7716. If you want, I can show you how they work - let me know. If you want to take a look yourself - they're yet to be fully documented - there's a Those dependencies will be installed as the template is copied over. This should be a very quick change to the the PR. Can you also this to the TypeScript template for consistency? Templates will be released very soon, you can preview them now in our beta channel:
All of that will become the below, once released.
|
Hey @kentcdodds. @iansu and I have reserved a template package for RTL that we'd be happy to give ownership to you. Come find us at the pool at react conf! 😛 |
I talked with @iansu at the conference and he told me about the templates thing which is cool. We discussed the value of including RTL in the default template which is what inspired this PR. So I take it that instead of adding things to the |
lol, I have no idea what I'm doing here. Sorry. Help is appreciated. |
It looks like you're on the right track. I just tried creating a new app locally, installing the So for some reason on CI it either hasn't installed the |
I'm on it. |
@kentcdodds i think i got things sorted for you. Note that the starter test in the templates wasn't quite right as it was trying to find a heading element, but our templates don't have any 😛. I refactored it to something similar to get it passing, but feel free to tweak it to something that you think is more useful. @mrmckeb i ran into an issue here in our |
Thanks @ianschmitz! Actually the test was good as it was. Thanks a ton for the help here. I think this will be really good for everyone. |
lol, just realized that you were correct in that you don't render a heading anymore (I need to update my local template 😅). Let me fix that back. Thanks! |
Alright! As far as I'm concerned, this is ready to go! |
Woooo! Thanks @kentcdodds 😄 |
Awesome! I can't wait for the release! Please do let me know so I can try it out as a last check :) |
Sorry all, I've been in London - but thanks for picking this up. We have a bad test that needs to be fixed. |
Closes #6358