Deprecated Storybook addon that throws migration errors directing users to the new package structure in Storybook 9.0
86
Build a monitoring utility that listens to and tracks specific Storybook events during story lifecycle and displays statistics about story rendering activity.
Your solution should:
The monitor should track at least the following event types:
The following test cases should pass:
@generates
/**
* Creates and initializes a story event monitor
* @param channel - The Storybook channel to listen on
* @returns An object with methods to get statistics and cleanup
*/
export function createEventMonitor(channel: any): {
getStatistics: () => Record<string, number>;
cleanup: () => void;
};Provides event type definitions and constants for Storybook events.
Provides the channel abstraction for event communication in Storybook.
Install with Tessl CLI
npx tessl i tessl/npm-storybook--addon-backgroundsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10