Uh oh!
There was an error while loading. Please reload this page.
Add @testing-library to the default templates - #7881
Conversation
kentcdodds
commented
Oct 25, 2019
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. |
ianschmitz
commented
Oct 25, 2019
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! 😛 |
kentcdodds
commented
Oct 28, 2019
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 |
kentcdodds
commented
Oct 28, 2019
lol, I have no idea what I'm doing here. Sorry. Help is appreciated. |
iansu
commented
Oct 28, 2019
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 |
ianschmitz
commented
Oct 29, 2019
I'm on it. |
ianschmitz
commented
Oct 29, 2019
@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 |
kentcdodds
commented
Oct 29, 2019
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. |
kentcdodds
commented
Oct 29, 2019
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! |
kentcdodds
commented
Oct 29, 2019
Alright! As far as I'm concerned, this is ready to go! |
ianschmitz
commented
Oct 29, 2019
Woooo! Thanks @kentcdodds 😄 |
kentcdodds
commented
Oct 29, 2019
Awesome! I can't wait for the release! Please do let me know so I can try it out as a last check :) |
mrmckeb
commented
Oct 30, 2019
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