Skip to content

fix: clear localStorage between ThemeContext tests to stop cross-test… - #19

Merged
Mahakisore7 merged 1 commit into
mainfrom
fix/theme-test-localstorage-leak
Sep 19, 2026
Merged

Mahakisore7 merged 1 commit into
mainfrom
fix/theme-test-localstorage-leak

Conversation

@Mahakisore7

Copy link
Copy Markdown
Contributor

… leak

CI's Linux jsdom has a working localStorage (unlike this project's local dev environment), so the "defaults to light" test's persisted value was leaking into the "defaults to dark" test and masking the matchMedia stub, failing CI while passing locally.

… leak

CI's Linux jsdom has a working localStorage (unlike this project's local
dev environment), so the "defaults to light" test's persisted value was
leaking into the "defaults to dark" test and masking the matchMedia stub,
failing CI while passing locally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Mahakisore7
Mahakisore7 merged commit 7f0e181 into main Sep 19, 2026
1 check passed
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.

1 participant