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.

Visual Studio code intellisense support for jest

See original GitHub issue

The solution is simple, but it’s ideal to be included into boilerplate.

Solution: Create a jsconfig.json file in the root of your workspace to specifically include jest:

{
    "typeAcquisition": {
        "include": [
            "jest"
        ]
    }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Timercommented, Aug 25, 2017

Wouldn’t yarn add @types/jest --dev suffice?

1reaction
Timercommented, Sep 29, 2017

This “just works” for me, especially when having @types/jest in devDependencies.

I’m not sure adding a section just for VSCode with the OP suggestion is worthwhile since no other IDEs support it.

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 >
VSCode Intellisense is not suggesting available methods in ...
Opened the project in VSCode. Expected Behavior. I expect VS Code intellisense would assist me with available methods from JEST. Actual Behavior. VS...
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 >
vscode-jest - Visual Studio Marketplace
This extension supports full jest features in vscode environment to make testing more ... Supports additional IntelliSense for jest methods.
Read more >
Virtual Studio Code and Jest IntelliSense Headaches Cured
There are many reasons for this, however one of the biggest headaches is getting VS Code IntelliSense to work with Jest (for one...
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