Describe the bug
When I have a custom asymmetric matcher, Vitest applies it correctly but disregards the matcher's ExpectationResult properties like message, actual, and expected if the matcher fails. I expect the inverse assertions (.not) to have the same problem.
Reproduction
Here's a sandbox: https://stackblitz.com/edit/vitest-dev-vitest-je43znvc?file=vite.config.ts,vitest.setup.ts,test%2Fbasic.test.ts&initialPath=__vitest__/
System Info
Used Package Manager
npm
Validations
Describe the bug
When I have a custom asymmetric matcher, Vitest applies it correctly but disregards the matcher's
ExpectationResultproperties likemessage,actual, andexpectedif the matcher fails. I expect the inverse assertions (.not) to have the same problem.Reproduction
Here's a sandbox: https://stackblitz.com/edit/vitest-dev-vitest-je43znvc?file=vite.config.ts,vitest.setup.ts,test%2Fbasic.test.ts&initialPath=__vitest__/
System Info
Used Package Manager
npm
Validations