AD

Addon Vitest

@storybook/addon-vitest

Storybook Vitest addon: Blazing fast component testing using stories

Testing
storybook
storybook-addon
vitest
testing
test
component
components
component-testing
react
vue
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install @storybook/addon-vitest

Code example

import { AddonVitest } from "@storybook/addon-vitest";

export function Example() {
  return (
    <div>
      <h2>Addon Vitest</h2>
      <AddonVitest />
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by ndelangen
  • 0 weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries