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
File list shows only useCounter.test.ts but with a label "Pass (2)"
Press "Rerun filtered" and see useCounter.test.ts and App.test.ts are executed in the terminal
Note that App.test.ts includes test case named should increment count on click and I assumed matching the test suite/case names is an intended behavior since that's the feature introduced in #1035.
Reveal screenshot
I think the issue is due to TaskTree is hiding TaskItem by unnecessary condition when used from TasksList while TasksList already applies filter to hide TaskTree:
Describe the bug
File filter display seems inconsistent with what's re-run when filtering and also with the count in the label.
Here is a reproduction https://stackblitz.com/edit/vitest-dev-vitest-m3inyx
(no change from the original template https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/react-testing-lib)
useCounter.test.ts
but with a label "Pass (2)"useCounter.test.ts
andApp.test.ts
are executed in the terminalNote that
App.test.ts
includes test case namedshould increment count on click
and I assumed matching the test suite/case names is an intended behavior since that's the feature introduced in #1035.Reveal screenshot
I think the issue is due to
TaskTree
is hidingTaskItem
by unnecessary condition when used fromTasksList
whileTasksList
already applies filter to hideTaskTree
:vitest/packages/ui/client/components/TaskTree.vue
Lines 19 to 20 in 9c552b6
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-m3inyx
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: