Skip to content
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

deps: upgrade jest packages to 29.7.0 #16147

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

deps: upgrade jest packages to 29.7.0 #16147

wants to merge 2 commits into from

Conversation

connorjclark
Copy link
Collaborator

Some types related to mocks went from any to something else - that's the cause of the bulk of the code changes.

@@ -41,7 +41,8 @@ describe('ExecutionContext', () => {
it('should clear context on frame navigations', async () => {
const executionContext = new ExecutionContext(sessionMock);

const frameListener = sessionMock.on.mock.calls.find(call => call[0] === 'Page.frameNavigated');
const frameListener = sessionMock.on.mock.calls
.find(call => call[0] === 'Page.frameNavigated') ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this change. The test needs to ensure that frameListener is defined, but it's impossible to be undefined now that you added the ?? [].

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants