Closed zmimi-lael closed 5 months ago
Goal is to have a this.context from a step file so it can share some information across different file steps?
Yes, you can create CustomWorld
inherited from BddWorld
. More details in docs.
@vitalets I tried to use the CustomWorld.
I am implementing my own this._context
as a global storage. But, looks like I am missing something. I tried to use the Given<CustomWorld>
from the example. Im using js btw.
@vitalets Hi, good day!
It worked! But not sure why :D
I do not add CustomWorld
like this Given<CustomWorld>
. Since I am using js
, I added the **/*.js
in the config file and it worked.
Hi @zmimi-lael ! You are right, Given<CustomWorld>
is only for TypeScript, for js you can just write Given(...)
Thank you so much @vitalets ! Appreciate it.