Skip to content

Bug: createBdd returns Cucumber-Style Typing when using Playwright-Style with custom fixture in 6.5.0 #163

Closed
@ChristianHehlBM

Description

@ChristianHehlBM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions