Right now, we have some hard-coded logic for folding stack chains that come from test errors. We fold core library frames and frames from the test, stack_trace, and stream_channel packages. We should make this set of packages customizable, at least by allowing users to add to it. The config for this could look something like:
folded_packages:
- pool
- async
I'm not super happy with that name—it only makes sense to people who know that "folding" is a thing that can be done to stack traces. But I also don't want to make it too verbose, and I'm having trouble coming up with a better alternative.