-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
test state is in "pending" when beforeAll
failed
#4820
Comments
That is an interesting dilemma. I decided to look into what other runners do (https://github.com/sheremet-va/test-before):
|
Was there ever a decision on this? I'm guessing no, since I still see tests in pending state when beforeAll fails. I'm thinking of switching to fixtures which seem to have better behavior and feel, but it's not exactly equivalent to beforeAll, since they get reinitialized for every test - am I right in saying that? |
Yes We decided to mark tests in the suite as |
Describe the bug
I'm creating a dedicated issue based on the discussion in #4799 (comment)
Current behavior seems to be that the test state is kept in "pending" when
beforeAll
failed, but the desired behavior might be to mark those tests as "skipped".Here is a repro and a screenshot of Vitest UI:
https://stackblitz.com/edit/vitest-dev-vitest-yr2mrp?file=test%2Frepro.test.ts
Show screenshot
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-yr2mrp?file=test%2Frepro.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: