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

allure-mocha package runtime "allure.step" return type "any" #945

Closed
obezglavlen opened this issue May 17, 2024 · 1 comment
Closed

allure-mocha package runtime "allure.step" return type "any" #945

obezglavlen opened this issue May 17, 2024 · 1 comment
Assignees
Milestone

Comments

@obezglavlen
Copy link

obezglavlen commented May 17, 2024

Describe the bug
When i pass my type in "allure.step" generic, it still returns "any" type. Because of that if my body is async function if i dont write await before "allure.step", this will be problem.

To Reproduce
Steps to reproduce the behavior:

  1. Import allure from "allure-mocha/runtime"
  2. Call allure.step few times and pass async functions
  3. They will not be executed sequentaly and linter doesn't lint any errors about "forgot await"

Expected behavior
If i pass my type to "allure.step" generic, it should show in typelint this type, not any

Screenshots
image
image

Desktop (please complete the following information):

  • OS: MacOs 14.4.1
  • Typescript 5.4.5
@baev baev added this to the 3.0 milestone May 22, 2024
@baev
Copy link
Member

baev commented May 31, 2024

Fixed in 3.0.0-beta.1

@baev baev closed this as completed May 31, 2024
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

3 participants