Hi, I used in CodeceptJS 2 DataTables, but now in version 3.0 I have an error.
Property 'current' does not exist on type 'SupportObject'
How can I solve this problem?
Old code:
Data(scenarioCases).Scenario("I check button's text", async (I, current: ScenarioCase)
New code
Data(scenarioCases).Scenario("I check button's text", async ({ I, current })
I could put current: any
in steps.d.ts
but it is not a good solution
ngraf
2
I have the same problem after migration to version 3.
I think this is indeed a “bug” that needs to be fixed.
I could put current: any
in steps.d.ts
but it is not a good solution
yeah, I agree this is a bad solution.
What I did is putting a comment “// @ts-ignore” one live above to please the Typescript compiler for now until it is fixed.
If there is no solution within next 48 hours I will create a Github issue.
ngraf
3
A bugfix pull-request has been created for this issue here:
It was fast. Thanks a lot