Within a step function, when I invoke a play function from another story, and pass full context as an argument, the linter complains with context-in-play-function
To Reproduce
await Default.play?.(context); // works fine
await step('In step', async () => {
await Default.play?.(context); // has lint errors
})
Expected behavior
no lint errors
OR a message that says we shouldn't play other functions within a step.
Additional context
Please do let me know of we shouldn't play other functions within a step.
Describe the bug
Within a
step
function, when I invoke a play function from another story, and pass full context as an argument, the linter complains with context-in-play-functionTo Reproduce
Expected behavior
play
other functions within astep
.Additional context
Please do let me know of we shouldn't play other functions within a
step
.Thanks!