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

[v.3.0.1][allure-jest][allure-js-commons] Snapshot handling methods don't fail tests #1152

Closed
lifanov-rza opened this issue Sep 23, 2024 · 0 comments · Fixed by #1154
Closed
Labels
theme:jest Jest related issue type:bug Something isn't working

Comments

@lifanov-rza
Copy link

lifanov-rza commented Sep 23, 2024

Describe the bug

official jest documentation

We use snapshots to check large response data strings. When the toMatchSnapshot method fails, ci crashes and contains error logs, but in the allure the test is green. In the console, the logs are also displayed correctly.

I would immediately ask you to think about whether it is possible to display the snapshot logs in the form in which it is logged in the console / ci job. This is much more convenient to analyze by comparing large strings / objects.

CI job logs:
image

To Reproduce

  • Create jest test containing `expect(data).toMatchSnapshot();
  • run test
  • compare local and allure result
    `
    Expected behavior
  • Allure result contains logs of failure

Screenshots
If applicable, add screenshots to help explain your problem.

Vesions:

  • jest: 29.7.0
  • allure-jest: 3.0.1
  • allure-js-commons: 3.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:jest Jest related issue type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants