forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Description
Current behavior
interface CustomWorld extends Mocha.Context {
title: string;
}
AfterStep({ name: 'I am on the "Main" page' }, function(this: CustomWorld) {
this.title = "read from page";
});will raise
Argument of type '(this: CustomWorld) => void' is not assignable to parameter of type 'IStepHookBody'.
The 'this' types of each signature are incompatible.
Desired behavior
The wish, as previously expressed by #864, is to be able to work with custom worlds by providing a this type to hook functions that extends Mocha.Context.
Cypress version
14.3.2
Preprocessor version
22.0.1
Node version
v22.15.0
Operating system
MacOS
Checklist
- I've read the FAQ.
- I've read instructions for logging issues.
- I'm not using
[email protected](package name has changed and it is no longer the most recent version, see #689).
Metadata
Metadata
Assignees
Labels
No labels