Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[2.0.0] Fix printing errors in setupFilesAfterEnv #19

Closed
noomorph opened this issue Nov 26, 2023 · 4 comments
Closed

[2.0.0] Fix printing errors in setupFilesAfterEnv #19

noomorph opened this issue Nov 26, 2023 · 4 comments

Comments

@noomorph
Copy link
Collaborator

noomorph commented Nov 26, 2023

Also, check what's the status of setupFiles... perhaps, we won't be able to track them properly in any case. 🤔

That's where the environment-less mode of jest-metadata will shine.

@noomorph
Copy link
Collaborator Author

The idea is that we don't show the relevant file in the description (e.g. when hohoSetup.ts, as a file inside setupFilesAfterEnv fails while compiling):

image

@noomorph
Copy link
Collaborator Author

noomorph commented May 4, 2024

The proposed solution is to parse stack traces (with a helper function or without), and use $.extractSourceCode(location[, includeComments]) to provide data for your custom markdown template.

The default logic "to show the entire test file contents" was removed because not everyone would be happy with it. It all depends on how you build your description template — if you use iframes or links, you won't be interested in this.

Copy link
Contributor

github-actions bot commented May 4, 2024

🎉 This issue has been resolved in version 2.0.0-beta.18 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Nov 6, 2024

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant