I am getting several (what I believe to be) false-positives for React unit testing using the renderIntoDocument() function, using SonarQube 7.6.0.21501 and SonarScanner 3.2.0.1227-windows.
it('will render with assign icon ', async () => {
const document: any = ReactTestUtils.renderIntoDocument(<AssignButtonField {...props} {...reduxProps} />);
const icon = ReactTestUtils.scryRenderedDOMComponentsWithClass(document, 'fa fa-sign-out-alt');
expect(icon.length).toEqual(1);
});
Rule being triggered: typescript:S3699