Closed RobinTail closed 4 weeks ago
Problem: expect::toEqual() does not really check other props of Error than message: https://vitest.dev/api/expect.html#toequal
expect::toEqual()
message
Solution: https://vitest.dev/api/expect.html#expect-addequalitytesters https://jestjs.io/docs/expect#expectaddequalitytesterstesters
Partially reverts https://github.com/RobinTail/express-zod-api/pull/1899
coverage: 100.0%. remained the same when pulling 90669613a447edd3861505b034ecd10998bf3391 on better-comparators into fd00e6bd1ec8b72d0845241e934afca610834481 on master.
Problem:
expect::toEqual()
does not really check other props of Error thanmessage
: https://vitest.dev/api/expect.html#toequalSolution: https://vitest.dev/api/expect.html#expect-addequalitytesters https://jestjs.io/docs/expect#expectaddequalitytesterstesters
Partially reverts https://github.com/RobinTail/express-zod-api/pull/1899