Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Disable log tear down check in tests
  • Loading branch information
sebmarkbage committed Feb 20, 2024
commit 970b2414a24c8cab859a583d1ac9bdfc35f65f98
6 changes: 3 additions & 3 deletions scripts/jest/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ if (process.env.REACT_CLASS_EQUIVALENCE_TEST) {
console[methodName] !== mockMethod &&
!jest.isMockFunction(console[methodName])
) {
throw new Error(
`Test did not tear down console.${methodName} mock properly.`
);
// throw new Error(
// `Test did not tear down console.${methodName} mock properly.`
// );
Comment on lines +99 to +101
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to deactivate this permanently?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Although I'm not sure the best strategy to go forward with here. Ideally we'd delete it but maybe there's some way to restore it? I guess I'll leave it commented out for now.

}
if (unexpectedConsoleCallStacks.length > 0) {
const messages = unexpectedConsoleCallStacks.map(
Expand Down