Show test suite file names in failure output #10659
Labels
component:code_quality
component:testing
migration:no-jira
migration:2024
qa:not_needed
repository:addons-frontend
Issue relating to addons-frontend
triaged
Milestone
Describe the problem and steps to reproduce it:
Trigger a test failure that happens on the event loop. In other words, one that won't produce a stack trace pointing back to the test file.
What happened?
You have no easy way to figure out which test file produced the error. Example:
What did you expect to happen?
You should be able to easily figure out which test file produced the error.
Anything else we should know?
We can totally do this now that Jest runs from NodeJS! We can start every test with
describe(__filename, ...)
which will produce errors like this:The text was updated successfully, but these errors were encountered: