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.

Ability to import jest functions from module (helpful for intellisense)

See original GitHub issue

🚀 Feature Proposal

import jest from 'jest'; doesn’t contain any jest test functions. Why??? It’s not so difficult to implement jest.d.ts

Motivation

I need to look for every function in jest documentation for using it. It’s difficult and annoying import and IntelliSense in this case will be helpful

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rogeliogcommented, Mar 9, 2020

Which version of Jest are you using? That seems to be working fine for me in a .ts file, with jest@25.x, and latest VSCode.

Screen Shot 2020-03-09 at 7 25 32 AM
0reactions
github-actions[bot]commented, May 13, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense for Jest not working in VS code - Stack Overflow
You first have to install jest locally or globally: npm i jest . Assuming you have a project of two directories like backend...
Read more >
Setting up Visual Studio Code intellisense for Jest globals
This instructs to look at the jest module for type definitions. With this configuration setup in jsconfig.json , Visual Studio Code will now ......
Read more >
Typescript error when importing jest-extended · Issue #367
Hi guys! To resolve the issue of being able to do the named import even though it doesn't cause a runtime issue, the...
Read more >
Testing with Jest and TypeScript, the tricky parts
I ran into something in this category with mocking a module with jest.mock() . import { fetchResource } from 'utils/api ...
Read more >
Configuring Jest
This option tells Jest that all imported modules in your tests should be mocked ... Public methods of `utils` are now mock functions...
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