-
Notifications
You must be signed in to change notification settings - Fork 232
refactor: move tests to specificly related folders #531
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
Conversation
hm. probably need to move that |
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.
A few suggestions, but no showstoppers
You have forgotten to update the eslintrc file which is why the CI is failing. |
If my other comments are right, you can just delete it |
9c3d9b1
to
a86fd96
Compare
Codecov Report
@@ Coverage Diff @@
## beta #531 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 189 189
Branches 27 27
=========================================
Hits 189 189 Continue to review full report at Codecov.
|
Thanks for doing those updates. |
🎉 This PR is included in version 5.0.0-beta.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What:
Proposal to move test files to be closer to the code that we're testing, and rename those test files to be
*.test.ts(x)
.Why:
This was discussed in #510, I'd say the main issue is they're all named the same and incredibly close together, now we're maintaining "three engines" we may mind that the testing needs to diverge, an example is seen in
src/server
where we need to test the hydration warnings. It also, imo, makes the repo look tidier.Renaming the tests was a personal choice, if i'm jumping around a lot of files, it's really helpful to understand whats a test file just from the name. Added bonus, you normally get a different icon in your IDE.
Also we do want to try and figure out how to cover
src/pure.ts
so this wouldn't actually fit into the old test folder pattern because they were related to the renderer. Therefore when we cross that bridge I would suggest putting the test insrc/__tests__
and thus naming itpure.test.ts
.Checklist: