Include ts-jest mock util functions in jest core
See original GitHub issue🚀 Feature Proposal
This proposal is for the outcome of the discussion in ts-jest that includests-jest mock util functions in jest core.
Motivation
Users don’t have to install ts-jest anymore to access these util mocks, just need to install jest.
Pitch
Suggestion from @thymikee that it should belong to jest core
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Manual Mocks - Jest
Manual mocks are used to stub out functionality with mock data. ... In this case, we use the core (built in) fs module....
Read more >Using Jest mock functions in TypeScript - Ben Ilegbodu
In my latest dev project NBA Player Tiers, I have this API function called getPlayerLadder . // src/api/players.ts import { getLadder, ...
Read more >When mocking a class in typescript using jest/ts-jest I am ...
When mocking a class in typescript using jest/ts-jest I am getting "TypeError: "X".default is not a constructor." ; from '../utils/storage' ...
Read more >Jest: Mock functions or modules using typescript
Jest is one of the popular unit testing frameworks. Mocking the functions and modules is one of the main important things to consider...
Read more >Unit Testing - Gatsby
The easiest way to do this is to add a jest.config.js . ... moduleNameMapper options for gatsby-page-utils , gatsby-core-utils , and gatsby-plugin-utils ....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Include as well another proposal in this area from https://github.com/kulshekhar/ts-jest/issues/1065
Yes please! 🙂