'react Jest unit testing media query testing
I am trying to run jest test but not getting full coverage, the problem is condition renders according mobile view and condition is no being executed
const matches = useMediaQuery('(min-width: 56.0625rem)');
{matches &&
<Grid item sm={12} md={6} lg={6} xs={12}>
<Benefits />
</Grid>}
the above condition is not working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
