-
Notifications
You must be signed in to change notification settings - Fork 36
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
TSX test files not working #38
Comments
I have the same problem with the |
Hi @davidarias and @quiqueporta, I work every day with tsx test files and i have not any trouble. It seems like your nvim do not manage to discover tests for these files. Can you write the output of :TSPlayground / :InspectTree of the tsx file? |
Hi @marilari88 Thanks for the quick answer! The result of :InspectTree is the following error:
Seems related to treesitter, but I don't understand why, I have installed (and reinstalled, just in case 😅 ) the grammar for tsx, js and ts, in fact the highlighting of tsx files works perfectly fine (I understand that the syntax highlight uses treesitter for parsing...) |
@davidarias Treesitter is not the only way to get the syntax highlighting. It seems like you don't have the parser for that file. Can you run :checkhealth or :TSModuleInfo ? |
@marilari88 Sorry, I executed :InspectTree in the wrong buffer, my bad 😅 This is the output executed on the tsx file of the screenshot:
And this is the result of :TSModuleInfo
|
this is so weird. What's your nvim version? |
Yes, it is in fact strange. I'm using nvim 0.9.4. with LazyVim (https://www.lazyvim.org/) and I think my teammate @quiqueporta is using 0.9.5 and have the same problem |
Hey @davidarias, I installed Lazyvim and I got the same error. I solved with this: nvim-neotest/neotest#303 (comment). Try to put treesitter into your dependencies list. Let me know if you solve too |
Yes, that worked @marilari88! Thank you so much for helping us! |
Seems it does not recognize tests inside tsx files:
I followed the installation instructions (using lazy) on a clean install, and I have correctly installed treesitter grammar for typescript, tsx and javascript,
Is there some configuration that I am not doing correctly?
Thanks!
The text was updated successfully, but these errors were encountered: