icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
54 stars 64 forks source link

test: Add setup file, handle matchMedia #831

Closed KevinWu098 closed 9 months ago

KevinWu098 commented 9 months ago

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 commented 9 months ago

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

KevinWu098 commented 9 months ago

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?