Skip to content

Keep default timeouts when an option is passed as undefined - #96

Open
official-burak wants to merge 1 commit into
tim-kos:masterfrom
official-burak:fix/ignore-undefined-options
Open

Keep default timeouts when an option is passed as undefined#96
official-burak wants to merge 1 commit into
tim-kos:masterfrom
official-burak:fix/ignore-undefined-options

Conversation

@official-burak

@official-burak official-burak commented Sep 2, 2026

Copy link
Copy Markdown

Passing undefined for an option currently overwrites the default, so { retries: 3, minTimeout: undefined } ends up with NaN timeouts and no delay between attempts. That's easy to hit when you forward optional config through.

This skips undefined values when merging options, so the documented defaults stay in place. Tests cover the reporter's case from #93, and retries: undefined still meaning 10.

Fixes #93

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.

Ignore undefined options so that they don't override defaults

1 participant