import React from 'react' import type { RenderResult } from '@toptal/picasso-test-utils' import { render } from '@toptal/picasso-test-utils' import type { OmitInternalProps } from '@toptal/picasso-shared' import { Input } from '@toptal/picasso-input' import type { Props } from './FormWarning' import { FormCompound as Form } from '../FormCompound' const TestFormError = ({ children }: OmitInternalProps) => { return (
Label: {children} This is a hint
) } describe('FormWarning', () => { let api: RenderResult beforeEach(() => { api = render(My Warning) }) it('renders', () => { const { container } = api expect(container).toMatchSnapshot() }) })