Closed
Description
my fixtures.ts
import { MyFixture} from "./my-fixture";
export const test = base.extend<{ myFixture: MyFixture}>({
myFixture: async ({ page }, use) => await use(new MyFixture(page)),
});
my steps.ts head:
import { test } from "../support/fixtures";
export const { Given, When, Then } = createBdd(test);
I expect to have proper Typing for myFixture when calling Given("...", async ({ myFixture }) => {})
but the function part of Given
is typed as CucumberStyleStepFn<never>
.
When reverting to 6.4.0 the typing is correct.