Open kajurek opened 1 year ago
I am surprised this didn't gather more attention or replies by now, ran into the exact same issue running jsdom with vitest. @kajurek have you been able to work around this, and have you tried posting it in https://github.com/jsdom/jsdom/issues?
Following the example from tailwindcss: https://tailwindcss.com/docs/hover-focus-and-other-states#differentiating-nested-groups. Item that should be invisible is still visible.
just to be sure the config of the tailwind is ok I followed https://stackoverflow.com/questions/71010317/react-testing-library-cant-read-styles-using-tailwind-css-classes
"jsdom": "22.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "14.0.0", "tailwindcss": "^3.3.3",
Relevant code or config:
it gives: