#Unit testing question - How Can I test the background color of Box component

2 messages · Page 1 of 1 (latest)

narrow quiver
#

In my unit test (using jest) I am trying to test the background color of Box component .
In my project I am overriding mantine default theme colors and I want to check if backgroud color is equal to theme.colors.brand[1].
I get an error that div does not have a backround color, and when I console.log the computedStyles in that div I don't see background color style.

jovial lichen