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"
],
please provide more info:
jest.pathToJest and jest.pathToConfig settings?jest.pathToJest and jest.pathToConfig specifically.Is the extension _supposed_ to handle TypeScript projects? This might be a missing feature and not a bug.
jest.pathToConfig. Thanks!
@connectdotz I would assume for the standard case that would be just
pathToConfig: "<rootDir>/tsconfig.json" ? thx
@connectdotz I don't get it to work. also, even in the 22 version of Jest I can't find the pathToConfig option in the docs. is this not supposed to go into jest.config.js ? thank you.
@marcelh-gh
jest.pathToConfig. jest.pathToJest to help the plugin find your jest binary if your environment is not "typical"... is this the multi-root project you referred in #342? then you will most likely have to specify both settingsvscode-jest 2.9.0 has shipped with jest 23.x support and more, which should address this issue. Feel free to reopen if otherwise.
In my case using it with craco, "jest.pathToJest": "npm run test --" worked
Most helpful comment
In my case using it with craco,
"jest.pathToJest": "npm run test --"worked