thefrontside / thefrontside/effectionx

Default timeout in bdd tests

Open
#130 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12
Forks
4
Avg merge
3h 17m
Merged PRs (30d)
1

Description

We have some tests that hang in Windows. I need to figure out how to fix the problem permanently, but I would in the meantime like to prevent tests from hanging by adding a default timeout.

Vitest uses 5s default timeout. I was thinking about applying the same.

@cowboyd Thoughts about constraints for configuration design?

  1. Do we want timeout to be on by default?
  2. Does it have to be pure or do we want to configure it via ESM module scope?
  3. How do we enable it or disable it?

Contributor guide

No contributing guide indexed for this repository

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 the BDD test setup and how Vitest applies its 5-second default timeout. Resolve whether timeouts should be enabled by default and configurable through ESM module scope, then verify that tests no longer hang and that the chosen enable/disable behavior works.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.