You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vitest show Error: Not implemented: window.computedStyle(elt, pseudoElt) while Jest not.
I'm about to migrate my react app with Ant Design from Jest to Vitest, after I'm done following migration guide and try run the new test with Vitest, Vitest show the error message come from JSDOM.
The error message only show if I test the the specific Ant Design component (Table in this case).
I don't know what Jest does under the hood, but this is normal JSDOM behaviour as far as I understand. Try workaround from this thread: NickColley/jest-axe#147
Describe the bug
Vitest show
Error: Not implemented: window.computedStyle(elt, pseudoElt)
while Jest not.I'm about to migrate my react app with Ant Design from Jest to Vitest, after I'm done following migration guide and try run the new test with Vitest, Vitest show the error message come from JSDOM.
The error message only show if I test the the specific Ant Design component (Table in this case).
Reproduction
https://github.com/fikryfahrezy/my-react-app
Run test with Jest
yarn test:jest src/index.jest.test.tsx
Run test with Vitest
yarn test:vitest src/index.vitest.test.tsx
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: