Releases: reg-viz/storycap-testrun
@storycap-testrun/node@2.1.0
Minor Changes
-
#248
96b0fb9Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.Per-story image options:
fullPage,omitBackground, andscalecan now be set per-story viaparameters.screenshot, overriding the global defaults.export default { parameters: { screenshot: { fullPage: false, }, }, };
Viewport fix: Added
viewportoption to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.storycap({ viewport: { width: 1280, height: 720 }, });
Full-page capture:
fullPage: true(default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results.fullPage: falsecaptures only the viewport area.
Patch Changes
- Updated dependencies [
96b0fb9]:- @storycap-testrun/internal@2.1.0
@storycap-testrun/internal@2.1.0
Minor Changes
-
#248
96b0fb9Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.Per-story image options:
fullPage,omitBackground, andscalecan now be set per-story viaparameters.screenshot, overriding the global defaults.export default { parameters: { screenshot: { fullPage: false, }, }, };
Viewport fix: Added
viewportoption to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.storycap({ viewport: { width: 1280, height: 720 }, });
Full-page capture:
fullPage: true(default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results.fullPage: falsecaptures only the viewport area.
@storycap-testrun/browser@2.1.0
Minor Changes
-
#248
96b0fb9Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.Per-story image options:
fullPage,omitBackground, andscalecan now be set per-story viaparameters.screenshot, overriding the global defaults.export default { parameters: { screenshot: { fullPage: false, }, }, };
Viewport fix: Added
viewportoption to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.storycap({ viewport: { width: 1280, height: 720 }, });
Full-page capture:
fullPage: true(default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results.fullPage: falsecaptures only the viewport area.
Patch Changes
- Updated dependencies [
96b0fb9]:- @storycap-testrun/internal@2.1.0
@storycap-testrun/node@2.0.0
Major Changes
-
#155
59f4147Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release✨ New Features
@storycap-testrun/browser
- Added support for
@storybook/addon-vitest- New Vitest plugin available via
/vitest-pluginexport - Enables visual testing in browser-based Vitest environments
- Maintains compatibility with existing test runners
- New Vitest plugin available via
📦 Package Restructuring
@storycap-testrun/node
- Official successor to the deprecated
storycap-testrunpackage- Dedicated support for
@storybook/test-runner - Optimized for Node.js environments
- Dedicated support for
@storycap-testrun/internal
- Core utilities shared across packages
- Improved internal APIs for better maintainability
- Optimized common functionality for browser and Node.js environments
💥 Breaking Changes
- Deprecated:
storycap-testrunpackage (migrate to@storycap-testrun/node) - Dropped support for Storybook v7 (requires v8+)
- Changed
postCapturehook signature (simplified fromScreenshotImagetofilepath) - Removed
output.dryoption
📚 Migration
See MIGRATION.md for detailed migration instructions from v1 to v2.
- Added support for
Patch Changes
- Updated dependencies [
59f4147]:- @storycap-testrun/internal@2.0.0
@storycap-testrun/internal@2.0.0
Major Changes
-
#155
59f4147Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release✨ New Features
@storycap-testrun/browser
- Added support for
@storybook/addon-vitest- New Vitest plugin available via
/vitest-pluginexport - Enables visual testing in browser-based Vitest environments
- Maintains compatibility with existing test runners
- New Vitest plugin available via
📦 Package Restructuring
@storycap-testrun/node
- Official successor to the deprecated
storycap-testrunpackage- Dedicated support for
@storybook/test-runner - Optimized for Node.js environments
- Dedicated support for
@storycap-testrun/internal
- Core utilities shared across packages
- Improved internal APIs for better maintainability
- Optimized common functionality for browser and Node.js environments
💥 Breaking Changes
- Deprecated:
storycap-testrunpackage (migrate to@storycap-testrun/node) - Dropped support for Storybook v7 (requires v8+)
- Changed
postCapturehook signature (simplified fromScreenshotImagetofilepath) - Removed
output.dryoption
📚 Migration
See MIGRATION.md for detailed migration instructions from v1 to v2.
- Added support for
@storycap-testrun/browser@2.0.0
Major Changes
-
#155
59f4147Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release✨ New Features
@storycap-testrun/browser
- Added support for
@storybook/addon-vitest- New Vitest plugin available via
/vitest-pluginexport - Enables visual testing in browser-based Vitest environments
- Maintains compatibility with existing test runners
- New Vitest plugin available via
📦 Package Restructuring
@storycap-testrun/node
- Official successor to the deprecated
storycap-testrunpackage- Dedicated support for
@storybook/test-runner - Optimized for Node.js environments
- Dedicated support for
@storycap-testrun/internal
- Core utilities shared across packages
- Improved internal APIs for better maintainability
- Optimized common functionality for browser and Node.js environments
💥 Breaking Changes
- Deprecated:
storycap-testrunpackage (migrate to@storycap-testrun/node) - Dropped support for Storybook v7 (requires v8+)
- Changed
postCapturehook signature (simplified fromScreenshotImagetofilepath) - Removed
output.dryoption
📚 Migration
See MIGRATION.md for detailed migration instructions from v1 to v2.
- Added support for
Patch Changes
- Updated dependencies [
59f4147]:- @storycap-testrun/internal@2.0.0