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

test: Add setup file, handle matchMedia #831

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

KevinWu098
Copy link
Member

@KevinWu098 KevinWu098 commented Dec 4, 2023

Summary

Added in a setup.ts file to mock the window.matchMedia function. JSDOM does not support it, resulting in our tests breaking.

Test Plan

Tests should run clean

Issues

Closes #827

@KevinWu098 KevinWu098 added the codefix Refactoring or improving the codebase label Dec 4, 2023
@KevinWu098 KevinWu098 requested a review from ap0nia December 4, 2023 07:49
@KevinWu098
Copy link
Member Author

@ap0nia I think you mentioned using a different config than vitest/config. Is that still how you think it should be implemented?

@KevinWu098
Copy link
Member Author

Also, is there any way to change the devops to exclude the author from the random reviewer selection? Or, alternatively, automatically rerun it if it fails?

Copy link
Member

@EricPedley EricPedley left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@EricPedley EricPedley merged commit 352f526 into main Dec 7, 2023
6 of 7 checks passed
@EricPedley EricPedley deleted the add-setup-for-tests branch December 7, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codefix Refactoring or improving the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schedule test failing
2 participants