We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried the equivalent function to the react library but composeStory does not render to screen.
composeStory
The text was updated successfully, but these errors were encountered:
I figured out a basic solution:
import {describe, it, expect} from 'vitest'; import Meta, {Primary} from './Button.stories'; import {Button} from './Button.tsx'; import {render} from '@solidjs/testing-library'; describe('It should create test on stories', () => { it('Tests stories', async () => { const args = { ...('args' in Meta ? (Meta as unknown as {args: Record<string, any>}).args : {}), ...('args' in Primary ? (Primary as unknown as {args: Record<string, any>}).args : {}), backgroundColor: 'blue', }; const renderedStory = render(() => <Button {...args} />).container; expect(renderedStory).toHaveTextContent('Button'); }); });
Sorry, something went wrong.
No branches or pull requests
I tried the equivalent function to the react library but
composeStory
does not render to screen.The text was updated successfully, but these errors were encountered: