vitest-dev / vitest-dev/vitest

test timeout overwrite also applied when debugging

Open
#6,950 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

p2-to-be-discussed
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Describe the bug

When needing to override the timeout for a test because the test takes more than the default 5000ms to run, the override value is then also taken into account while debugging

This shouldn't be, because then, when debugging, the test will likely fail during debugging when hitting a breakpoint

See prior discussion: https://github.com/vitest-dev/vscode/discussions/539

Reproduction
System Info
-
Used Package Manager

npm

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how test timeout overrides are applied during normal runs and how the debugging path invokes them, then compare the behavior with the prior discussion at vitest-dev/vscode#539. Done means an overridden timeout still works for regular test execution but does not shorten or constrain a test while debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.