HF RL Explorer

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-oss: Agentic RL Environments (MiMo RL release). 🐛 Bug Report 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

🐛 Bug Report 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…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.