Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: replace enzyme test code with @testing-library/react. (#471)
* Update test case. Replace enzyme test code with @testing-library/react. Update test cases in `tests/index.spec.tsx` to use `@testing-library/react` instead of `enzyme`. * Replace `enzyme` imports with `@testing-library/react` imports. * Update test cases to use `render`, `fireEvent`, and other utilities from `@testing-library/react`. * Remove `mount` and `ReactWrapper` imports. * Change code `props.style` with `toHaveStyle({ key: value })` style. * Change `style.display` check to be `toHaveStyle("display: block")` or `display: none`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/react-component/dialog?shareId=XXXX-XXXX-XXXX-XXXX). * test: fix part * test: fix lint * test: fix test case * chore: adjust package.json
- Loading branch information