Replies: 1 comment 3 replies
-
Try updating your babel config at the root to https://github.com/callstack/react-native-builder-bob/blob/main/packages/create-react-native-library/templates/common/babel.config.js#L1 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a library using create-react-native-library. I then attempted to unit-test a react-native component. This includes introducing @testing-library/react-native.
When I run the tests, I get:
Here's the test
import { View, Text } from 'react-native';
export function Stupid(props: { name: string }) {
return (
<View testID={'stupid-view'}>
<Text testID={'stupid-text'}>Hello {props.name}
);
}
Beta Was this translation helpful? Give feedback.
All reactions