henrikjernevad, Another leak in the JavaScript single-threaded facade (or a bug in Jest, really).
Asserting
expect(...).toStrictEqual(...)
fails with two structurally identical objects created by two different Node worker threads because their prototypes are not the same (though identical). Assertingexpect(structuredClone(...)).toStrictEqual(structuredClone(...))
works.