Skip to content

[allure-jest][ts] how to use allure.step, example from docs doesn't work #2673

Discussion options

You must be logged in to vote

You can import step function from allure-js-commons:

import { step } from "allure-js-commons";

it("Test Authentication", async () => {
  await step("step 1", async () => {
    await step("step 1.1", async () => {
    });
    await step("step 1.2", async () => {
    });
  });
  ...
});

Or you can import all functions as allure alias:

import * as allure from "allure-js-commons";

it("Test Authentication", async () => {
  await allure.step("step 1", async () => {
    await allure.step("step 1.1", async () => {
    });
    await allure.step("step 1.2", async () => {
    });
  });
  ...
});

The documentation will be updated together with the release.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vivregenek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants