[allure-jest][ts] how to use allure.step, example from docs doesn't work #2673
Answered
by
baev
vivregenek
asked this question in
Questions & Support
-
Hello, Im using allure-jest 3.0.0-beta.9. Would like to specify steps, like its written in docs, but allure obj can't be found, I can't find it exported either by allure-jest or allure-js-common.
Also noticed in allure-js-commons/types/index.d.ts export from ./facade.js, if I change to export from ./facade.d.ts i can use exported by this 'step' function |
Beta Was this translation helpful? Give feedback.
Answered by
baev
Aug 7, 2024
Replies: 1 comment
-
You can import 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 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vivregenek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can import
step
function fromallure-js-commons
:Or you can import all functions as
allure
alias:The documentation will be updated together with the release.