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

chore: make test helper for log scraping more explicit during failure #63

Open
btlghrants opened this issue Sep 10, 2024 · 0 comments
Open
Assignees

Comments

@btlghrants
Copy link
Collaborator

Currently, when a pepr / a pepr-excellent-example fail in a particular way during testing, we get an abbreviated, rather-hard-to-understand / -diagnose error message out of the test runner.

    SyntaxError: Unexpected token '(', "(node:1) ["... is not valid JSON
        at JSON.parse (<anonymous>

The way we have to troubleshoot this is to pull the offending example down to execute locally (after injecting some add'l log dumps).

The ask here is: make the test helper that's throwing the opaque error message more explicit in the failure case. We want to:

  • dump the whole error message / stack track, and
  • dump out the logs that caused the error.

This would allow us to diagnose test issues without first having to pull it down & run it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant