traintrape-moi/client/components/__tests__/ThemedText-test.tsx

11 lines
269 B
TypeScript
Raw Permalink Normal View History

2024-12-07 09:24:41 +00:00
import * as React from 'react'
import renderer from 'react-test-renderer'
2024-12-01 11:29:47 +00:00
2024-12-07 09:24:41 +00:00
import { ThemedText } from '../ThemedText'
2024-12-01 11:29:47 +00:00
it(`renders correctly`, () => {
2024-12-07 09:24:41 +00:00
const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON()
2024-12-01 11:29:47 +00:00
2024-12-07 09:24:41 +00:00
expect(tree).toMatchSnapshot()
})