-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: Remove Enzyme from visx #1893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chazcb , this is awesome 👏 🤖
Noticed some minor problems I can fix.
// Verify the path connects the correct points | ||
const dAttribute = path?.getAttribute('d') || ''; | ||
expect(dAttribute).toContain('M100,100'); // Should start at x,y | ||
expect(dAttribute).toContain('150,150'); // Should end at x+dx,y+dy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improved the tests here! 🤖 🎉
@@ -40,8 +40,5 @@ | |||
}, | |||
"publishConfig": { | |||
"access": "public" | |||
}, | |||
"devDependencies": { | |||
"@testing-library/react-hooks": "^8.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left over from #1890, hoping this fixes the failing @visx/react-spring
hooks test suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we did it finish 🏁
This is really amazing 🎉 If this was done using LLM this might warrant a blog post or so somewhere... |
This PR replaces Enzyme with RTL in prep for React 19 support.
🏠 Internal
jest.mock
usage