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

Fix node warnings in tests #2082

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Fix node warnings in tests #2082

merged 1 commit into from
Apr 7, 2022

Conversation

timagixe
Copy link
Contributor

@timagixe timagixe commented Apr 7, 2022

Description

In this PR I fixed node warnings in HeaderProfile.spec.jsx

More Details

Took a look on tests and decided to mock the entire Notifications component, warnings were generated since axios is used in it. Since there are no tests for Notifications in HeaderProfile.spec.jsx I decided to mock the entire component instead of mocking axios.

Corresponding Issue

Closes #2033.


Reviewing this pull request? Check out our Code Review Practices guide if you haven't already!

@welcome
Copy link

welcome bot commented Apr 7, 2022

Thank you for opening this pull request with us! Be sure to follow our Pull Request Practices. Let us know if you have any questions on Slack.

Copy link
Member

@julianguyen julianguyen left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! 🎉

@julianguyen julianguyen merged commit a0af037 into ifmeorg:main Apr 7, 2022
@welcome
Copy link

welcome bot commented Apr 7, 2022

Thank you for merging this pull request with us! If you haven't already, in another pull request, please add yourself to our About page.

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

Successfully merging this pull request may close these issues.

Fix Node warnings in React Jest tests
2 participants