question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ahnpnlcommented, Mar 18, 2020

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

1reaction
SimenBcommented, Feb 29, 2020

Yes please! 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found