{"library":"storybook-addon-test-codegen","type":"library","category":null,"description":"storybook-addon-test-codegen is a Storybook addon designed to streamline the creation of interactive tests for UI components. It enables developers to record interactions with their stories directly within the Storybook UI, automatically generating executable test code using utilities from `@storybook/test` (e.g., `userEvent`, `within`, `expect`). The current stable version is 3.0.1, with major version releases frequently aligning with Storybook's own major updates (e.g., v3.0.0 supports Storybook 10, v2.0.0 supports Storybook 9). This addon significantly reduces the manual effort of writing tests by converting recorded actions into functional test scripts and provides immediate feedback, including warnings for potential test improvements. Its core differentiator lies in its interactive, in-browser test generation capabilities within the Storybook development environment.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","storybook-addons","interactions","test","codegen","typescript"],"install":[{"cmd":"npm install storybook-addon-test-codegen","imports":["// .storybook/main.ts\nimport type { StorybookConfig } from '@storybook/react-vite'; // or your framework\n\nconst config: StorybookConfig = {\n  addons: ['storybook-addon-test-codegen']\n};\nexport default config;","// .storybook/preview.ts\nimport addonCodegen from 'storybook-addon-test-codegen';\nimport { definePreview } from '@storybook/react-vite'; // or your framework\n\nexport default definePreview({\n  addons: [addonCodegen()]\n});","import { userEvent, waitFor, within, expect } from \"storybook/test\";"]},{"cmd":"yarn add storybook-addon-test-codegen","imports":[]},{"cmd":"pnpm add storybook-addon-test-codegen","imports":[]}],"homepage":null,"github":"https://github.com/igrlk/storybook-addon-test-codegen","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/storybook-addon-test-codegen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/storybook-addon-test-codegen/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}