toEqual throws a TypeError when using getter to private field of class
toEqual throws a TypeError when using getter to private field of class: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Jest throws a TypeError when using toEqual or toMatchObject in a class with private fields (those starting by ) and a getter that exposes the…
The task
Jest throws a `TypeError` when using `toEqual` or `toMatchObject` in a class with private fields (those starting by `#`) and a getter that exposes the value. I guess other similar matchers like `toStrictEqual` also fails but didn't test. I tested this using jest-circus and fails the same way.
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.