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.

vscode-jest does not seem to work with ts-jest and transform config for use with TypeScript

See original GitHub issue

Environment

node -v: 10.5 npm -v: 6.1 VSCode: 1.24.1 Jest: 23.2 ts-jest: 23.0 Operating system: Windows 10 1709

transform config in jest.config.js

    transform: {
        "^.+\\.tsx?$": "ts-jest"
    },
    testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
    moduleFileExtensions: [
        "tsx",
        "ts",
        "js",
        "jsx",
        "json",
        "node"
    ],

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

8reactions
n3pscommented, Sep 28, 2019

In my case using it with craco, "jest.pathToJest": "npm run test --" worked

0reactions
connectdotzcommented, Jul 24, 2018

vscode-jest 2.9.0 has shipped with jest 23.x support and more, which should address this issue. Feel free to reopen if otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging with TypeScript, Jest, ts-jest and Visual Studio ...
I've been working on a TypeScript project where I'm using jest. I'm super happy with TypeScript and Jest and with ts-jest, you get...
Read more >
vscode-jest with ts-jest breakpoints in typescript source files
In VS Code I have the plugin vscode-jest installed. Debugging is not quite working as I would like it: I can start a...
Read more >
Babel Config option | ts-jest - GitHub Pages
ts-jest can call the BabelJest processor once TypeScript has transformed the source into JavaScript. The option is babelConfig and it works ...
Read more >
Debug Unit Tests in VSCode using Jest, Typescript ...
Hi folks! Yesterday I spent a lot of time to enable debugging for my unit tests in Visual Studio Code. Unfortunatelly I did...
Read more >
Head start testing with Jest and Typescript
Hello, this post is not a super professional, it is a summary of notes ... transform: we say use 'ts-jest'; testRegex: we tell...
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