🚀 Feature: Allow to set timeout on before/after/beforeEach/afterEach in declaration #5202
Open
2 of 3 tasks
Labels
status: in triage
a maintainer should (re-)triage (review) this issue
type: feature
enhancement proposal
Feature Request Checklist
faq
label, but none matched my issue.Overview
it
returns aTestFunction
that has atimeout
method. This is useful for setting timeouts in slow tests, without needing to define the test code inside afunction() {}
block.An analogous feature would be useful for the
before/beforeEach/after/afterEach
hooks. The current workaround would be:Suggested Solution
before/beforeEach/after/afterEach
could return aHookFunction
, analogous toTestFunction
, which has atimeout
method. The code above could be rewritten:Alternatives
None
Additional Info
No response
The text was updated successfully, but these errors were encountered: