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
I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
Hi,
we are developing a React app with iX, TailwindCSS and Webpack. We write our unit tests with Jest and React Testing Library.
After upgrading iX to 2.7.0, the unit tests that are written for IxToggle component fails, which are completely fine on version 2.5.0. As far as I investigate the issue, somehow click event does not detected on unit tests.
We also had attacInternals problem on our unit tests, but after adding global.HTMLElement.prototype.attachInternals on our jest.setup.js file, they are gone (please see my comment on #1612).
I have created a codesandbox project, which has the same dependencies with our project.
Thank you.
What type of frontend framework are you seeing the problem on?
I have installed element-internals-polyfill and imported it on my jest.setup.js file, but it has not solved my problem. My test environment supports custom elements and ElementInternals. You can see my test environment and versions on codesandbox. I have imported the exact same packages and versions with our project.
I changed the visibility of the project. Could you please try it again? https://codesandbox.io/p/devbox/ix-jest-problem-h8jyqm
I have installed element-internals-polyfill and imported it on my jest.setup.js file, but it has not solved my problem. My test environment supports custom elements and ElementInternals. You can see my test environment and versions on codesandbox. I have imported the exact same packages and versions with our project. I changed the visibility of the project. Could you please try it again? https://codesandbox.io/p/devbox/ix-jest-problem-h8jyqm
Can you add some more insights how to start the unit tests inside codesandbox.
Prerequisites
What happened?
Hi,
we are developing a React app with iX, TailwindCSS and Webpack. We write our unit tests with Jest and React Testing Library.
After upgrading iX to 2.7.0, the unit tests that are written for IxToggle component fails, which are completely fine on version 2.5.0. As far as I investigate the issue, somehow click event does not detected on unit tests.
We also had attacInternals problem on our unit tests, but after adding
global.HTMLElement.prototype.attachInternals
on our jest.setup.js file, they are gone (please see my comment on #1612).I have created a codesandbox project, which has the same dependencies with our project.
Thank you.
What type of frontend framework are you seeing the problem on?
React
Which version of iX do you use?
v2.7.0
Code to produce this issue.
The text was updated successfully, but these errors were encountered: