Preparing for system design interviews?  Try bugzed.com →

Storybook Addon Vite Mock

JSON →
library 1.1.1 ·javascript
verified Jun 18, 2026

A Storybook addon that provides Jest-like module mocking for Vite-based Storybook projects (v10+). Version 1.1.1 is current, with active development on GitHub. It replaces module imports with mock implementations during Storybook stories, using a Vite plugin and a createMock function. Unlike traditional Jest mocks that require a test runner, this addon works directly in Storybook's preview environment, allowing visual testing of components with mocked dependencies. It supports @storybook/react-vite and @storybook/nextjs-vite frameworks. The mockRestore() is automatic after story unmount. Configuration via addon options allows include/exclude patterns for builds. Ships TypeScript types.

total hits 36
actors 9 distinct systems
last hit 17d ago human
GPTBot
4
Amazonbot
4
ChatGPT-User
4
ClaudeBot
2
Script
1
ByteDance
1
Search engines
6
Humans
10

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇩🇪 Germany