Skip to content

Commit 9acaa3e

Browse files
authored
docs: add note about not trying to set default timeout from hooks or steps (cucumber#1616)
1 parent 0b9aaee commit 9acaa3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/support_files/timeouts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Given(/^a slow step$/, {timeout: 60 * 1000}, function() {
2323
});
2424
```
2525

26+
*Note that you should not call `setDefaultTimeout` from within a hook or step; it should be called globally.*
27+
2628
## Disable Timeouts
2729

2830
**DO NOT USE THIS UNLESS ABSOLUTELY NECESSARY**

0 commit comments

Comments
 (0)