-
Notifications
You must be signed in to change notification settings - Fork 554
Cursor generated rules #4493
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
Cursor generated rules #4493
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #4493 +/- ##
==========================================
- Coverage 80.60% 80.51% -0.10%
==========================================
Files 142 142
Lines 16057 16057
Branches 2748 2748
==========================================
- Hits 12943 12928 -15
- Misses 2245 2266 +21
+ Partials 869 863 -6 |
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.
This feels weird but if it makes the cursor experience better...
See comments
- **Descriptive names**: Use clear, descriptive test function names | ||
- **Arrange-Act-Assert**: Structure tests with setup, execution, and verification | ||
- **Isolation**: Each test should be independent and not affect others | ||
- **No mocking**: Never use mocks in tests |
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.
Sometimes there's no way around mocking
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.
the default tests it generated had like 5 mocks and then tested one or two lines of code so really want to avoid that. If you want to use mocks, just write the test yourself for now, if the LLM writes it it should be without mocks.
Web 2 should be ok after merging master |
83ddebf
to
4679b0e
Compare
These files are either way not auto-enabled and you need to tag them to use them anyway and it's a start, we will ofc iterate on them as we learn what works best. Also the way to think about this is what it auto-generated was sort of how it thinks of the codebase anyway, now that it's in rules it's cached and costs less. And we fixed a bit of what was wrong in there. |
4679b0e
to
d44241f
Compare
It also added performance and aws related files but I want to keep it simple for now.
This adds: