I just wanted to test types on out-of-the-box react testing tools, it looks pretty straight forward what I wanted to do, but it just doesn't like it. Plus, would this be possible for other types?
test('Expect label to be of type string', () => {
const testString = 'Test value'
const { getByDisplayValue } = render(<Label text={testString}/>);
expect(getByDisplayValue).toBe(string);
});