Matthew Rose
Matthew Rose
As mentioned this looks to be `loupe`, but potentially a configuration thing that can be disabled or made configurable. The stack frames in the reproduction relate to this line https://github.com/chaijs/loupe/blob/main/src/index.ts#L139C7-L139C20...
I will see what I can do later today 👍🏻 To be clear, where should I cut from? The `0.34` branch?
I gave this a go and the contributing guide wasn't getting me anywhere, things were erroring. So I decided to try go in blind and discovered the following which suggests...
I followed the stack through these functions (now with links to `chai` github): - [`getMessage()`](https://github.com/chaijs/chai/blob/4.x.x/lib/chai/utils/getMessage.js#L47C48-L47C58) - [`objDisplay()`](https://github.com/chaijs/chai/blob/4.x.x/lib/chai/utils/objDisplay.js#L29) - [`inspect()`](https://github.com/chaijs/chai/blob/4.x.x/lib/chai/utils/inspect.js#L32) The final `inspect()` is not `loupe` but a wrapper which looks...