marilari88 / neotest-vitest

Vitest adapter for Neovim Neotest plugin
106 stars 33 forks source link

test(`template literal`, ...) not listed in summary #2

Open tyler-dot-earth opened 2 years ago

tyler-dot-earth commented 2 years ago

Tests using backticks/template literals (`) do not get listed in the summary (and may not be found by the adapter at all; not sure).

Example: image

tyler-dot-earth commented 2 years ago

Note: i replaced the original attachment - was the wrong file.

tyler-dot-earth commented 2 years ago

For added clarity: template literals are never shown, regardless of if it contains a ${variable} or not

notice the lack of bar bar bar here:

image

marilari88 commented 2 years ago

Hi @tsnieman , thanks for opening the issue. I'm investigating the problem and I realised that it's just about summary panel but also about running test with template literal as name. Also, template literals containg variables are gonna make it harder to solve cause we need to figure out the best way to build testNamePattern I'll keep you updated

GNRSN commented 6 months ago

I just ran in to this issue. A first fix that allows template literals without dynamic names (${variable}) to work would be great just to avoid confusion <3