-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.assert from Puppeteer showing up in terminal after upgrading to v22.3.0 #5574
Comments
Would the recent changes to |
@SimenB I agree, I will fix it later on today. |
Thank you for the fix. Is there a new release coming for it or perhaps a way to disable the assertions until the official fix? |
you should be able to do |
@SimenB could you be more specific? I'm rather new to Jest, trying to use it with Puppeteer in a regression testing suite. I've created a jest.config.js file and tried to set it there assuming that console.assert were global. That didn't work. |
console.assert = jest.fn();
describe('your Jest test suite start here', () => {
test('your unit test (or whatever you are doing)', () => {
// do something
});
}); works for me. |
22.4.0 is released, btw, so this shouldn't be needed anymore |
Oh, this wasn't closed. |
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. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
console.assert
from puppeteer is showing up in terminal when running tests.What is the expected behavior?
The
console.assert
calls didn't show up in v22.1.4The text was updated successfully, but these errors were encountered: