-
-
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
adding ts-jest mock util functions in jest-mock #12089
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12089 +/- ##
==========================================
- Coverage 68.89% 68.89% -0.01%
==========================================
Files 324 324
Lines 16669 16672 +3
Branches 4814 4814
==========================================
+ Hits 11484 11486 +2
- Misses 5152 5153 +1
Partials 33 33
Continue to review full report at Codecov.
|
Documentation https://github.com/facebook/jest/tree/main/docs would need to be updated as well as CHANGELOG too :) |
Typescript compiler is not able to validate definition files |
The whole |
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.
thanks!
For those a who came here from the warning:
|
* [Fixed][Issue #195] Using spaces in title results in ffmpeg error. * Dev Dependencies bumped * jest.mocked instead of ts-jest/mocked due to jestjs/jest#12089
* All dependecies are up to date + jest.mocked instead of ts-jest mocked due to jestjs/jest#12089 * Example removed * React Styleguidist first try * Better documentation * Styled documentation, changed min & max validators, removed special validators, workflows are tuned up * Reusable docs workflow * Reusable docs workflow fix * Additional item in changelog * Reusable docs workflow fix * Validators refactored * Invert validators result * Readme * min & length validators + integration test suites * fix * fix * one more fix * Exclude/ignore file(s) from Jest coverage by not running relevant tests * fix * code dublication avoided * Seems work * Bumped dependencies * Docs
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
This PR can close #9534 which was opened as a feature request by @ahnpnl
This PR includes -
mocked
test helpers fromts-jest
https://github.com/kulshekhar/ts-jest/blob/main/src/utils/testing.tstypes from @types/jest https://github.com/DefinitelyTyped/DefinitelyTyped/blob/a68259ee8883cc9899463fe79a78bb49a9d2f6de/types/jest/index.d.ts#L1042-L1298
there is also another proposal for
partialMocked
in kulshekhar/ts-jest#1065 which can be added after these changes are approved.Any suggestions/ changes which can help in closing the above issue are most welcome.