<h3>Hello <strong>World</strong></h3> *ByRole screen.getByRole('heading', { name: 'Hello World' }); or.toHaveTextContent expect(screen.getByTestId('my-id')).toHaveTextContent('Hello World');
I post a ton of #TIL posts at work.
I figured I'd post it here too so that I can reference it later