Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context-in-play-function in step lints incorrectly #145

Open
quangv opened this issue Dec 20, 2023 · 0 comments
Open

context-in-play-function in step lints incorrectly #145

quangv opened this issue Dec 20, 2023 · 0 comments

Comments

@quangv
Copy link

quangv commented Dec 20, 2023

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-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.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant