Closed FAMSTM closed 10 months ago
@FAMSTM its a JSDOM issues with Layers we fixed it like this..
https://github.com/primefaces/primereact/pull/5092
Not great but nothing else you can do its a core JSDOM issue.
There's an alternative solution that @mertsincan posted in this PrimeVue issue. I couldn't apply it on the React side but you might have better luck.
Thank you, I used this method https://github.com/primefaces/primevue/issues/4512#issuecomment-1749633215
@FAMSTM Oh we tried to use the same thing here on PrimeReact and it didn't work. Can you post what you did for React?
Describe the bug
I'm getting this error after upgrading from 9.6.2 to 10.0.5 during a jest testing-library test run on datatable component (jsdom cannot parse @layer in CSS):
Reproducer
https://codesandbox.io/p/sandbox/testing-with-jest-forked-lpzj27
PrimeReact version
10.0.5
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome 118
Steps to reproduce the behavior
yarn test
=> the error will be displayed
Expected behavior
No error