import React from 'react'; import { composeStories } from '@storybook/react-vite'; import { render as testRender } from '../../../vitest/render'; import * as stories from './ImageCrop.stories'; const composedStories = composeStories(stories); describe('ImageCrop Story Snapshots', () => { it('has tests for all stories', () => { const storyNames = Object.keys(composedStories); const testedStories = new Set(['Default', 'RoundStencil', 'FreeAspect', 'SaveCroppedImage']); const untestedStories = storyNames.filter(name => !testedStories.has(name)); expect(untestedStories).toEqual([]); }); it('renders Default story', () => { const Story = composedStories.Default; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders RoundStencil story', () => { const Story = composedStories.RoundStencil; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders FreeAspect story', () => { const Story = composedStories.FreeAspect; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders SaveCroppedImage story', () => { const Story = composedStories.SaveCroppedImage; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); });