MCPcopy Create free account
hub / github.com/cometchat/cometchat-uikit-angular / main

Function main

scripts/storybook-performance.js:220–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219// Main execution
220async function main() {
221 log('Storybook Performance Testing', colors.bright + colors.blue);
222 log('This may take a few minutes...\n');
223
224 const results = {};
225
226 // Measure build time
227 results.buildTime = measureBuildTime();
228
229 if (results.buildTime) {
230 // Analyze build output
231 results.analysis = analyzeBuildOutput();
232
233 // Identify slow components
234 results.storyFiles = identifySlowComponents();
235
236 // Generate report
237 generateReport(results);
238 } else {
239 log('\nPerformance testing incomplete due to build failure.', colors.red);
240 process.exit(1);
241 }
242}
243
244main().catch(error => {
245 console.error('Error running performance tests:', error);

Callers 1

Calls 5

logFunction · 0.85
measureBuildTimeFunction · 0.85
analyzeBuildOutputFunction · 0.85
identifySlowComponentsFunction · 0.85
generateReportFunction · 0.70

Tested by

no test coverage detected