-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: all node.contains for shadow dom usage #9485
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
Conversation
|
|
||
| import {act, within} from '@testing-library/react'; | ||
| import {CheckboxGroupTesterOpts, UserOpts} from './types'; | ||
| import {nodeContains} from '@react-aria/utils'; |
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.
should we also use this in the test-utils, or should I disable the rule for this package?
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.
hm i don't think it's really necessary for test-utils. i'd be fine with disabling the rule for this package
|
Build successful! 🎉 |
|
Build successful! 🎉 |
Closes
Originally from #9369
This is a fully automated PR and should not change the behaviour of anything by default as nodeContains just uses node.contains under the hood unless the shadow dom flag is on.
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: