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: resolve the test message name statically when dynamic expression is used #518

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Oct 30, 2024

Related #515

It is not possible to resolve the dynamic name during collection because it's done statically. but the name will be resolved the next time the test has run.

This fixes the display, but running the test with a button won't work for these tests because we use testNamePattern to run tests.

We need to try and find a way to keep the original dynamic names when the collection is triggered. Maybe just ignore static names if the dynamic is known?

@sheremet-va sheremet-va merged commit e4658b7 into vitest-dev:main Oct 30, 2024
2 checks passed
@sheremet-va sheremet-va deleted the fix/print-the-string-name branch October 30, 2024 17:58
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.

1 participant