Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

@testing-library/jest-native and @testing-library/react-native are dev dependencies we cannot assume they will be always available. This PR makes jestUtils import fireEvent only when its available.

Test plan

Run yarn test

@j-piasecki j-piasecki merged commit e693176 into main Feb 28, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/conditional-testing-library branch February 28, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants