-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: convert jest-cli and jest-validate to esm #8874
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8874 +/- ##
=======================================
Coverage 64.12% 64.12%
=======================================
Files 275 275
Lines 11629 11629
Branches 2845 2846 +1
=======================================
Hits 7457 7457
Misses 3545 3545
Partials 627 627
Continue to review full report at Codecov.
|
0c0ab92
to
a238374
Compare
@@ -5,6 +5,12 @@ | |||
* LICENSE file in the root directory of this source tree. | |||
*/ | |||
|
|||
import * as cli from 'jest-cli'; | |||
export { |
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.
followup from last question, should we ditch these exports as well?
A reason not to is that we don't really have a programmatic API yet (and won't from jest 25), so all we'd do is ask people to import directly from @jest/core
or jest-cli
. I think that if we first ask people to change their imports, we should also give them a real API rather than the internal ones that are used now
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.
As long as we don't have clear vision of the new API, I wouldn't change that just yet
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
We wanna migrate off of
export =
as it's not valid JS. These ones should be free as they already export objects. Marking them as breaking, but it should just be breaking for people usingTS
- eitherimport
orrequire
should work the sameTest plan
Green CI