You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,13 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
9
9
----
10
10
## [Unreleased] (In Git)
11
11
12
+
See the [migration guide](./docs/migration.md) for details of how to migrate from 7.x.x to 8.x.x
13
+
12
14
### Breaking changes
13
15
14
16
* Drop support for Node.js 10 and 15, add support for Node.js 16
15
-
* Remove deprecated `--retryTagFilter` option (the correct option is `--retry-tag-filter`)
17
+
* Remove deprecated `--retryTagFilter` option (the correct option is `--retry-tag-filter`)
18
+
* Remove `setDefinitionFunctionWrapper` and step definition option `wrapperOptions`
16
19
17
20
### Added
18
21
@@ -25,7 +28,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
25
28
### Fixed
26
29
27
30
* Prevent duplicate scenario execution where the same feature is targeted in multiple line expressions ([#1706](https://github.com/cucumber/cucumber-js/issues/1706))
28
-
* Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables
31
+
* Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables
29
32
* Re-add color functions for use with custom formatters [1582](https://github.com/cucumber/cucumber-js/issues/1582)
Copy file name to clipboardExpand all lines: docs/support_files/step_definitions.md
-30
Original file line number
Diff line number
Diff line change
@@ -69,36 +69,6 @@ When(/^I view my profile$/, function () {
69
69
});
70
70
```
71
71
72
-
73
-
## Definition function wrapper
74
-
75
-
If you would like to wrap step or hook definitions in with some additional logic you can use `setDefinitionFunctionWrapper(fn)`. The definitions will be wrapped after they have all been loaded but before the tests begin to run. One example usage is wrapping generator functions to return promises. Cucumber will do an additional stage of wrapping to ensure the function retains its original length.
76
-
77
-
```javascript
78
-
// features/step_definitions/file_steps.js
79
-
const { Then } =require('@cucumber/cucumber');
80
-
constassert=require('assert');
81
-
constmzFs=require('mz/fs');
82
-
83
-
Then(/^the file named (.*) is empty$/, function*(fileName) {
0 commit comments