You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is monitor pet-peeve that's been really bothering me.
When I run the tests I notice there's always this "ghost" suite at the top of the ancestorTitles stack that leads to the test name having a space in front of it, and the ancestor with an empty array item:
It just generates an empty suite. If there was some way to pass a prop to it for it to take the name of the currently running file, it would be much more clear.
Describe the bug
This is monitor pet-peeve that's been really bothering me.
When I run the tests I notice there's always this "ghost" suite at the top of the
ancestorTitles
stack that leads to the test name having a space in front of it, and the ancestor with an empty array item:You can see it here with
testResults.assertionResults.ancestorTitles
:https://vitest.dev/guide/reporters#json-reporter
The reason behind this is in this code:
vitest/packages/runner/src/suite.ts
Lines 43 to 47 in e99451c
It just generates an empty suite. If there was some way to pass a prop to it for it to take the name of the currently running file, it would be much more clear.
Reproduction
vitest version
: 1.6.0test.test.ts
:run.js
:node run.js
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: