Our unit test coverage is abysmal, at best, and our unit tests are lacking due to how hard it is to mock DOM related dimension functionality with jest and jsdom. I'm currently looking for a way to factor these DOM related pieces out or to minimize the DOM api surface area needed by the component to both improve the ability to unit test and improve coverage.
Our unit test coverage is abysmal, at best, and our unit tests are lacking due to how hard it is to mock DOM related dimension functionality with jest and jsdom. I'm currently looking for a way to factor these DOM related pieces out or to minimize the DOM api surface area needed by the component to both improve the ability to unit test and improve coverage.