Closed kamilzki closed 1 month ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
^29.7.0
Steps to reproduce
Hello! I encountered an issue when running Jest tests with
Object.freeze(Object.prototype)
in my code. The error stacktrace produced by a failing test is not correctly pointing to the location of the error in the test file. Here is a simplified example to reproduce the issue:and one failing test:
When
Object.freeze(Object.prototype)
is commented out, the error stacktrace correctly points to the line in the test file where the assertion failed ("Expected behavior").Expected behavior
Error: expect(received).toEqual(expected) // deep equality
Expected: 5 Received: 3