diff --git a/src/lib/components/FormControls/TextInput.spec.tsx b/src/lib/components/FormControls/TextInput.spec.tsx index 4b5d749c1..a0270686b 100644 --- a/src/lib/components/FormControls/TextInput.spec.tsx +++ b/src/lib/components/FormControls/TextInput.spec.tsx @@ -14,4 +14,10 @@ describe.concurrent('Components / Form controls / Text input', () => { expect(textInput).toBeInTheDocument(); }); }); + + describe('Check display name', () => { + it('should have a display name of "TextInput"', () => { + expect(TextInput.displayName).toEqual('TextInput'); + }); + }); }); diff --git a/src/lib/components/FormControls/TextInput.tsx b/src/lib/components/FormControls/TextInput.tsx index f7ef3d5d7..881248307 100644 --- a/src/lib/components/FormControls/TextInput.tsx +++ b/src/lib/components/FormControls/TextInput.tsx @@ -71,3 +71,5 @@ export const TextInput = forwardRef( ), ); + +TextInput.displayName = 'TextInput';