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

mock useGlobals in jest #1327

Merged
merged 2 commits into from
Jun 7, 2023
Merged

mock useGlobals in jest #1327

merged 2 commits into from
Jun 7, 2023

Conversation

mayank99
Copy link
Contributor

@mayank99 mayank99 commented Jun 6, 2023

Changes

After #1265, jest logs were full of warnings because we don't wrap any tests in <ThemeProvider>.

Added a mock to prevent these logs from spamming the terminal and slowing down test runs.

Testing

N/A

Docs

N/A

@mayank99 mayank99 requested a review from a team as a code owner June 6, 2023 18:43
@mayank99 mayank99 self-assigned this Jun 6, 2023
@mayank99 mayank99 requested a review from a team as a code owner June 6, 2023 18:43
@mayank99 mayank99 requested review from gretanausedaite and LostABike and removed request for a team June 6, 2023 18:43
@mayank99 mayank99 merged commit a00eac5 into dev Jun 7, 2023
@mayank99 mayank99 deleted the mayank/jest-mock-globals branch June 7, 2023 12:12
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.

2 participants