From 83643a78b73dee5610be6ad9837fb72e9b944cb7 Mon Sep 17 00:00:00 2001 From: Santo Cariotti <santo@dcariotti.me> Date: Wed, 28 Aug 2024 15:53:21 +0200 Subject: Initial commit Generated by create-expo-app 3.0.0. --- components/__tests__/ThemedText-test.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 components/__tests__/ThemedText-test.tsx (limited to 'components/__tests__/ThemedText-test.tsx') diff --git a/components/__tests__/ThemedText-test.tsx b/components/__tests__/ThemedText-test.tsx new file mode 100644 index 0000000..1ac3225 --- /dev/null +++ b/components/__tests__/ThemedText-test.tsx @@ -0,0 +1,10 @@ +import * as React from 'react'; +import renderer from 'react-test-renderer'; + +import { ThemedText } from '../ThemedText'; + +it(`renders correctly`, () => { + const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON(); + + expect(tree).toMatchSnapshot(); +}); -- cgit v1.2.3-18-g5258