inner suite { sequential: true }
doesn't override outer suite { concurrent: true }
#5716
Closed
6 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I'm not sure what we want it to happen since users could technically also write completely conflicting things like
{ sequential: true, concurrent: true }
. As shown in the reproduction below,describe.sequential
anddescribe('...', { concurrent: false })
correctly resets, so I think we could also support{ sequential: true }
too at least?I spotted this while writing test cases for #5491. Probably the condition around here is relevant:
vitest/packages/runner/src/suite.ts
Lines 289 to 291 in 7454aea
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-79s4mn?file=test%2Frepro.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: