Skip to content

Add debug testTimeout value#12415

Merged
kodiakhq[bot] merged 7 commits intomainfrom
trek/zero-2805-add-larger-vitest-timeout-when-in-debug-mode
Oct 29, 2024
Merged

Add debug testTimeout value#12415
kodiakhq[bot] merged 7 commits intomainfrom
trek/zero-2805-add-larger-vitest-timeout-when-in-debug-mode

Conversation

@trek
Copy link
Contributor

@trek trek commented Oct 29, 2024

For those of us who use a debugger, the test suit exiting early is frustrating. You can get around this by setting this value yourself or running with --testTimeout in the terminal but adding this behavior globally seems like a nice quality of life change.

I couldn't find a 100% guaranteed way to detect if node is in debug mode but the rough consensus was detecting debugPort covered the largest number of cases.

I audited all the uses of vi.setConfig({ testTimeout }); in packages/cli and only found one that looked like it could definitely be removed. The use case it covered was negated by #12354.

The others mostly came from 413706d or had a comment explaining their need.

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2024

🦋 Changeset detected

Latest commit: 273bf57

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

erikareads
erikareads previously approved these changes Oct 29, 2024
Co-authored-by: Sean Massa <EndangeredMassa@gmail.com>
onsclom
onsclom previously approved these changes Oct 29, 2024
erikareads
erikareads previously approved these changes Oct 29, 2024
Co-authored-by: Nathan Rajlich <n@n8.io>
@trek trek dismissed stale reviews from erikareads and onsclom via 273bf57 October 29, 2024 19:34
@kodiakhq kodiakhq bot merged commit 9691d45 into main Oct 29, 2024
@kodiakhq kodiakhq bot deleted the trek/zero-2805-add-larger-vitest-timeout-when-in-debug-mode branch October 29, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants