adding ts-jest mock util functions in jest-mock#12089
adding ts-jest mock util functions in jest-mock#12089SimenB merged 9 commits intojestjs:mainfrom k-rajat19:temp
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 |
For those a who came here from the warning:
|
|
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 -
mockedtest helpers fromts-jesthttps://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
partialMockedin 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.