We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is my component:
I try to simulate on press while testing using react testing library and this is the error I get:
Please let me know how I can test the on-press event. Any help is appreciated.
The text was updated successfully, but these errors were encountered:
Same issue here!
Sorry, something went wrong.
Any solution ? @Prernabudh
@faizazafar @Prernabudh you guys can try
const item = await findByTestId("switch"); fireEvent(item, 'onChange', {nativeEvent: {}}));
const item = await findByTestId("switch");
fireEvent(item, 'onChange', {nativeEvent: {}}));
for react native
No branches or pull requests
This is my component:

I try to simulate on press while testing using react testing library and this is the error I get:
Please let me know how I can test the on-press event. Any help is appreciated.
The text was updated successfully, but these errors were encountered: