Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix mocks in ManagedIdentitySources tests #7534

Merged
merged 6 commits into from
Jan 28, 2025
Merged

Conversation

shylasummers
Copy link
Contributor

@shylasummers shylasummers commented Jan 27, 2025

This PR moves all jest.restoreAllMocks() calls in msal-node's ManagedIdentitySources tests to the file's afterEach. This fixes the bug where, if one of these tests fails, Jest prints the error dozens of times.

@github-actions github-actions bot added the msal-node Related to msal-node package label Jan 27, 2025
Copy link
Collaborator

@Robbie-Microsoft Robbie-Microsoft left a comment

Choose a reason for hiding this comment

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

Thanks!

@shylasummers shylasummers enabled auto-merge (squash) January 27, 2025 22:06
@shylasummers shylasummers disabled auto-merge January 27, 2025 22:08
@shylasummers shylasummers enabled auto-merge (squash) January 28, 2025 18:44
@shylasummers shylasummers merged commit e289f28 into dev Jan 28, 2025
7 of 8 checks passed
@shylasummers shylasummers deleted the managedIdentitySpecMocks branch January 28, 2025 18:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants