fix: don't print column in test names when includeTaskLocation is enabled#10681
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
hi-ogawa
left a comment
There was a problem hiding this comment.
Cannot tell where this change shows up exactly. This isn't the error stack line:column right? Is this only for display side of includeTaskLocation?
Yes. We print the location in verbose reporter if |
hi-ogawa
left a comment
There was a problem hiding this comment.
This looks fine and doesn't change much anyway since the column is just test/it indentation.
|
Can you update PR title to mention |
includeTaskLocation is enabled
includeTaskLocation is enabledincludeTaskLocation is enabled
Vitest doesn't support
file:line:columnformat when running tests, so one always has to manually remove the column when copying the path. Instead, let's just only print the line. Column is usually irrelevant anyway