JEST not recognizes the Allure
Describe the bug I was trying to follow the configuration related to this repo https://github.com/allure-examples/allure-jest-example
The vs code did not recognize the library allure, so no methods are allowed
Expected behavior The methods have been recognized at the VS CODE.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
Hi, could you try our project generator, please: https://allurereport.org/start/
Hey @eroshenkoam,
This site only created empty projects, and unfortunately was not helpful. I tried using Javascript -> Mocha, Javascript -> Jest -> both formats browser and NodeJs Here are the files generated: project browser.zip project.zip project (1).zip
Hey there. Try to add next import somewhere in your test setup files:
import "allure-jest"
The import will let vscode know about the types definitions
starting 3.0.0, you can import Allure Runtime API from allure-js-commons:
import {
label,
link,
issue,
tms,
step,
attachment,
} from "allure-js-commons";
// or
import * as allure from "allure-js-commons";