-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: add transforms fixtures for codemod test #1421
Conversation
People can be co-author:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: 0 B Total Size: 69.1 kB ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1421 +/- ##
==========================================
+ Coverage 73.89% 77.21% +3.32%
==========================================
Files 70 71 +1
Lines 590 597 +7
Branches 131 132 +1
==========================================
+ Hits 436 461 +25
+ Misses 142 129 -13
+ Partials 12 7 -5
|
@@ -0,0 +1,2 @@ | |||
# transforms testfixtures | |||
packages/codemods/src/transforms/testfixtures/** |
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.
I created a .prettierignore
file to prevent the test environment snapshots of testfixtures
from being modified by the formatter. Is there a better approach to handle this?
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.
In my opinion, that's good
Overview
closed: #1420
jscodeshift/dist/testUtils
.ref: https://github.com/facebook/jscodeshift?tab=readme-ov-file#unit-testing
PR Checklist