Thank you for your help !
My linter was complaining when I was using document, so I decided to query the container of the toggle.
Then I had to mock window.__setPreferredTheme which is used by the gatsby plugin, and everything worked.
Thanks again for your help :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for your help !
My linter was complaining when I was using
document
, so I decided to query the container of the toggle.Then I had to mock
window.__setPreferredTheme
which is used by the gatsby plugin, and everything worked.Thanks again for your help :)