Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const onScrollComplete = (done) => {
ReactPerf.stop();
let measurements = ReactPerf.getLastMeasurements();
let summary = ReactPerf.getMeasurementsSummaryMap(measurements);
ReactPerf.printWasted(measurements);
let summaryParser = new SummaryParser(summary);
expect(summaryParser.getByComponent('Cell').wastedInstances <= 1000).toBeTruthy();
done();
};