sst.dev
sst.dev copied to clipboard
fix(jest): :pencil2: stick to jest expect convention
https://jestjs.io/docs/en/expect#tobevalue
Use .toBe() to compare primitive values or to check referential identity of object instances.
.toEqual() is rather used to compare the content of an object.
actual and expected values were also the other way around; The reference value is supposed to used as a parameter of the toBe function rather than the expect function.
Thank you. We'd need to update the code repos attached to this. I'll leave this open for now and update it once we update the guide.