10 lines
279 B
TypeScript
10 lines
279 B
TypeScript
import * as React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import { ThemedText } from '@/components/Theme';
|
|
|
|
it(`renders correctly`, () => {
|
|
const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON();
|
|
|
|
expect(tree).toMatchSnapshot();
|
|
});
|