https://github.com/avatsavirs/antd-tab-tests
- git clone
- npm install
- npm test
Tests run successfully without any warning.
Tests run successfully but with "An update to ForwardRef(TabNavList) inside a test was not wrapped in act(...)" warnings.
Environment | Info |
---|---|
antd | 4.13.0 |
React | 17.0.2 |
System | Ubuntu 20.04 |
Browser | Firefox 89.0 |
I leave the tests running for 100ms at the end of the test case to make sure there are no unexpected changes. With antd Tabs this triggers multiple "not wrapped in act(...)" warnings, indicating some unintentional changes. These warning can we prevented if we manually unmount the component before the test is over. This makes testing components using ant-design Tabs problematic. I'm trying to figure out what's causing this unintentional change and how can it be prevented so I don't have to manually unmount the component before each test is over. Let me know if I can help in any way.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too