From 5f6e9b4474bbec38047026c0704eaac0bb6f012c Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Tue, 6 Feb 2024 01:37:11 +0000 Subject: [PATCH] test: more tests --- .../components/InputExample/TextInput.test.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/expo-example/components/InputExample/TextInput.test.tsx diff --git a/examples/expo-example/components/InputExample/TextInput.test.tsx b/examples/expo-example/components/InputExample/TextInput.test.tsx new file mode 100644 index 0000000000..2e5590302b --- /dev/null +++ b/examples/expo-example/components/InputExample/TextInput.test.tsx @@ -0,0 +1,11 @@ +import { render, screen } from '@testing-library/react-native'; +import { composeStory } from '@storybook/react'; +import Meta, { Basic } from './TextInput.stories'; + +const TextInputStory = composeStory(Basic, Meta); + +test('text input story renders', () => { + render(); + + screen.getByPlaceholderText('Type something'); +});