mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
* 🔧 Upgrade to storybook 9.x * 🔧 Upgrade to storybook 10.x * 🔧 Update watch:storybook script so it builds its assets dependencies first * 🔧 Use vitest for storybook tests (test-storybook was deprecated)
6 lines
360 B
TypeScript
6 lines
360 B
TypeScript
import { setProjectAnnotations } from '@storybook/react-vite';
|
|
import * as projectAnnotations from './preview';
|
|
|
|
// This is an important step to apply the right configuration when testing your stories.
|
|
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
|
|
setProjectAnnotations([projectAnnotations]); |