I am using a High Chart component created using React. I have to write a test for it, and the infrastructure is Jasmine/Karma/React TestUtils.
I have written the following code:
const component: React.Component<{}, {}> = TestUtils.renderIntoDocument(
<EmailActivityBreakdown trendData={trendData}/>
);
I am consistenly getting Error#13 http://www.highcharts.com/errors/13 (when instantiating the chart component inside the "EmailActivityBreakdown" object).
Things work fine generally with the component, (i.e. in non-test case mode). How can I create the chart element with a 'renderTo' inside the ReactTest framework to work?
Thanks.