120
rated 0 times
[
122]
[
2]
/ answers: 1 / hits: 12986
/ 4 Years ago, mon, november 2, 2020, 12:00:00
In jest for some reason you get something like
expected: "test"
received: serializes to the same string
if you do .toContainEqual
expected: "test"
received: "test"
this seems to only occur when using mongoose with jest, but I think the issue has to do with uriEncoding and decoding
More From » node.js