Hey, thanks for this awesome package. It has been a game-changer for our testing strategy. Anyway,
The problem
We regularly call step from step. However, we recently had a type error slip through on account of the fact that the keyword functions (from createBDD) do not preserve the arg types of the function which they receive. For instance, here is the type for the example from the docs:
We are hoping that the ...args: any[] could be improved.
A solution
We can work around it by extracting that function out to a separate assignment, but this is not ideal. There may also be better ways to work around it; but I thought I'd inquire about whether it might be possible to preserve those types from playwright-bdd's side. Any chance you'd check it out? We really appreciate you!
Hey, thanks for this awesome package. It has been a game-changer for our testing strategy. Anyway,
The problem We regularly call step from step. However, we recently had a type error slip through on account of the fact that the keyword functions (from createBDD) do not preserve the arg types of the function which they receive. For instance, here is the type for the example from the docs:
We are hoping that the
...args: any[]
could be improved.A solution We can work around it by extracting that function out to a separate assignment, but this is not ideal. There may also be better ways to work around it; but I thought I'd inquire about whether it might be possible to preserve those types from playwright-bdd's side. Any chance you'd check it out? We really appreciate you!