jest-dom icon indicating copy to clipboard operation
jest-dom copied to clipboard

Loading css with js-dom

Open Karljoy973 opened this issue 8 months ago • 0 comments

Hi everyone, I am looking to load a css file at the beginning of one of my test so that I can check if my ui element that I am testing has the correct style.

I have seen that jsdom does not load css and this is the reason why my tests are failing. I do want to have this css and I dont want to use the style attribute as I am working with tailwind.

Do someone knows how to fix the situation ?

Karljoy973 avatar Mar 11 '25 14:03 Karljoy973