Disable loupe's `customInspect` option to avoid collisions.
One of my objects has a .inspect function that collides with chai/loupe's customInspect setting.
The options provided to loupe's inspect are hardcoded (which is why I'm opening the issue here rather than in loupe):
https://github.com/chaijs/chai/blob/0b0353cb18a9dcf8b6c3124802238283a210e174/lib/chai/utils/inspect.js#L24-L29
Setting customInspect: false below would disable the check.
https://github.com/chaijs/loupe/blob/b5b084b8429a3ad2ed4e8abfab2e3cdef92ba6e2/src/index.ts#L99-L101
There's already an issue over there questioning the validity of using a string-keyd 'inspect' function given that there is support for Symbols widely available https://github.com/chaijs/loupe/issues/74, but it seems to have been missed by the maintainers of the repo.
https://github.com/chaijs/loupe/blob/b5b084b8429a3ad2ed4e8abfab2e3cdef92ba6e2/src/index.ts#L28-L30
Source: chaijs/chai