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
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".
@playwright/test fails the first test and marks all subsequent tests as "skipped"
jest fails every test that doesn't have "skip" modifier - every test has errors populated (even skipped ones), but the test status stays "pending"
mocha doesn't even register any tests, only failures (looking at json output) - it does show "before all" hook for "<name of the first test>" in the terminal
tap is similar to mocha - only the first test (named assert) is marked as failed, all others are not even collected
node:test marks every test as a failed one if an error is thrown inside before (it has a special "cancelled" state that is shown as a failing test) - output is similar to jest (every test shows an error "test did not finish before its parent and was cancelled" even if it has { skip: true }, but it's counted as skipped
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: