vscode-jest
vscode-jest copied to clipboard
Typescript template literal types break code lens + gutter icon.
Environment
-
node -v
: v14.2.0 -
npm -v
: 6.14.4 -
npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [email protected] -
your vscode-jest settings if customized: N/A
-
Operating system: Windows 10
Prerequisite
- are you able to run jest test from command line? [fill]
- how do you run your tests from command line? (for example:
npm run test
ornode_modules/.bin/jest
) [fill]
Tests are still running normally, I can see them pass/failing in the output panel.
Steps to Reproduce
In a typescript test file uncomment the Type
line below => see code lens + gutter icon disappear:
// type Type = `some string ${"a" | "b" | "c"}`
describe("bla", () => {
it("test", () => {
expect(true).toBe(true)
})
})
Relevant Debug Info
Running in debug mode when I uncomment the type line I get an error:
failed to get test result for [...my test file path]: SyntaxError: Template literal types cannot have any substitution (65:27)
at Object._raise (c:\Users\Alan\.vscode\extensions\orta.vscode-jest-4.0.0-alpha.1\out\extension.js:338:166679)
...
Expected Behavior
This works normally.
Actual Behavior
Code lens and gutter icons disappear.