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

JEST not recognizes the Allure #933

Open
liliancunha opened this issue Apr 29, 2024 · 3 comments
Open

JEST not recognizes the Allure #933

liliancunha opened this issue Apr 29, 2024 · 3 comments
Assignees
Labels
theme:jest Jest related issue
Milestone

Comments

@liliancunha
Copy link

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

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
@eroshenkoam
Copy link
Member

Hi, could you try our project generator, please:
https://allurereport.org/start/

@liliancunha
Copy link
Author

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

@epszaw
Copy link
Member

epszaw commented May 14, 2024

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

@epszaw epszaw self-assigned this May 14, 2024
@epszaw epszaw added the theme:jest Jest related issue label May 14, 2024
@baev baev added this to the 3.0 milestone May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:jest Jest related issue
Projects
None yet
Development

No branches or pull requests

4 participants