vscode-jest icon indicating copy to clipboard operation
vscode-jest copied to clipboard

Typescript template literal types break code lens + gutter icon.

Open AlansCodeLog opened this issue 4 years ago • 0 comments

Environment

  1. node -v: v14.2.0

  2. npm -v: 6.14.4

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): [email protected]

  4. your vscode-jest settings if customized: N/A

  5. 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 or node_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.

AlansCodeLog avatar Feb 04 '21 19:02 AlansCodeLog