Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks when ts file contains using keyword #351

Open
mickmister opened this issue Dec 29, 2023 · 3 comments
Open

Breaks when ts file contains using keyword #351

mickmister opened this issue Dec 29, 2023 · 3 comments

Comments

@mickmister
Copy link

Hi I'm using the using keyword in my test, but this makes it so the "run test" buttons go away. This was added in typescript 5.2 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management

How might I help fix this?

@firsttris
Copy link
Owner

hey @mickmister

jest-editor-support uses babel-parser to parse the test code.

https://github.com/firsttris/vscode-jest-runner/blob/master/src/parser.ts#L2
https://github.com/firsttris/vscode-jest-runner/blob/master/src/JestRunnerCodeLensProvider.ts#L60

i could imagine that this feature is not supported by babel-parser yet.

@mickmister
Copy link
Author

Hi @firsttris, thanks for your quick response. Do you have a suggestion in how I might verify this, or request that this be done? Possibly request this in their repository? https://github.com/babel/babel

@firsttris
Copy link
Owner

somewhere on the bable site there was a section with features and plugins i remember. i remember this because we migrated from typescript to babel-parser in jest-editor-support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants