-
-
Notifications
You must be signed in to change notification settings - Fork 74
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: infer base from package json scripts during migration #993
feat: infer base from package json scripts during migration #993
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## main #993 +/- ##
==========================================
- Coverage 93.61% 93.58% -0.03%
==========================================
Files 92 93 +1
Lines 4952 4992 +40
Branches 413 420 +7
==========================================
+ Hits 4636 4672 +36
- Misses 315 318 +3
- Partials 1 2 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
@@ -111,6 +111,11 @@ vi.mock("./createOptionDefaults/index.js", () => ({ | |||
}, | |||
})); | |||
|
|||
const readPackageData = vi.hoisted(() => vi.fn()); |
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.
TIL about vi.hoisted
, very nice! https://vitest.dev/api/vi.html#vi-hoisted
Elsewhere in this repo I've used mock*
as a naming convention. I think both are valid and reasonable... but the mock*
is used everywhere else, so I'll go ahead and make the change.
🎉 This is included in version v1.42.0 🎉 The release is available on: Cheers! 📦🚀 |
PR Checklist
status: accepting prs
Overview
Add a naive solution for checking the existing
package.json
during migration to infer the base.🐸