import { render } from '@testing-library/react-native' import * as React from 'react' import 'react-native' import CodeRow, { CodeRowStatus } from 'src/components/CodeRow' describe('CodeRow', () => { it('renders correctly for all CodeRowStatus states', () => { ;[ CodeRowStatus.DISABLED, CodeRowStatus.INPUTTING, CodeRowStatus.PROCESSING, CodeRowStatus.RECEIVED, CodeRowStatus.ACCEPTED, ].map((status) => { const { toJSON } = render( ) expect(toJSON()).toMatchSnapshot() }) }) })