-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversion to React Testing Library #1208
Conversation
destructure the use of wrapper and ignore the return when it's not used
trans.render.spec.js: Convert to RTL. 22 tests.
probably you need to define the off function in the mockI18n object |
We discussed about this and it does not seem to be necessary to have screen as a comment nor use it, since we are using toMatchInlineSnapshot for inline snapshots.
@adrai Works like a charm 🎉 🙌 |
3 tests. off method has been added to mockI18n
I don't know, maybe just convention? Maybe @jamuhl knows why? |
@jamuhl I also found many functions in the test/typescript folder, that does not get exported nor used, I wonder if we should keep them? And of course, my question would be, what are those doing? This would of course be a separate PR if any, sorry for bringing it up in this PR 👍. |
Added packages for the Linter setting for TL & Jest-DOM | Cleanup and Refactoring
Thanks @JacobMGEvans 🥰 |
@JacobMGEvans @balavishnuvj @merodiro @juhanakristian I am fine with this being reviewed by the maintainers 😃. If you guys are also fine with it, just give this a thumbs-up, otherwise, what do you think still needs to change or be updated? 4 thumbs ups and this should be review-ready I guess 💯 |
Do we know why the CircleCI stuff keeps failing? |
@JacobMGEvans No idea tbh, clicked on it and somehow had to login. @adrai @jamuhl Do you guys know why circleci keeps failing? All tests are passing locally 🤷♂️ |
CI should not fail anymore after the last commit hopefully 😝 🤞 |
Yeah, this has to be fixed. Currently no ideas, @marcosvega91 do you have an idea? Thanks 🙏 🥰 |
let me check the code :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if is not clear :)
CI/CD should pass if these assertions work Co-authored-by: Marco Moretti <[email protected]>
lgtm, but the boss needs to review it too 😉 |
was merged beside that @tigerabrodi have a look at https://github.com/i18next/react-i18next#core-contributors if anyone else feels like planning to help this project in the future - would be happy to add you to the list too! |
thanks to all helping with this change...having the tests updated to rtl is awesome 👍 |
@jamuhl 🥰 💞 |
Convert tests to React Testing Library as mentioned in #1207
Checklist
npm run test