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

Fix TestNearest with Jest on TSX TS Language #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manning390
Copy link

Issue

When you have the treesitter tsx language installed (or gets automatically installed in my case) the :TestNearest fails due to ft_to_lang(filetype) returning tsx and not typescript finding no matching query for the runner. This short circuits and returns {} and runs tests against the whole file.

Solution

  • Add tsx to list of languages jest runner

Not sure how to run any of the tests locally to ensure there are no breaking changes but looking at the jest runner spec there doesn't appear anything this would break.

@manning390
Copy link
Author

I think the workflow might require a config secret setting? Not sure why it's failing.

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

Successfully merging this pull request may close these issues.

None yet

1 participant