mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Updates snippets
This commit is contained in:
parent
ad16d1b2fe
commit
7377b505ab
@ -6,8 +6,8 @@
|
||||
|
||||
import type { AddonOptionsBabel } from '@storybook/addon-coverage';
|
||||
|
||||
// Imports Storybook's configuration API
|
||||
import type { StorybookConfig } from '@storybook/types';
|
||||
// Replace your-framework with the framework and builder you are using (e.g., react-webpack5, vue3-webpack5)
|
||||
import type { StorybookConfig } from '@storybook/your-framework';
|
||||
|
||||
const coverageConfig: AddonOptionsBabel = {
|
||||
include: ['**/stories/**'],
|
||||
|
@ -1,3 +1,3 @@
|
||||
```shell
|
||||
npm install nyc @storybook/addon-coverage --save-dev
|
||||
npm install @storybook/addon-coverage --save-dev
|
||||
```
|
||||
|
@ -1,3 +1,3 @@
|
||||
```shell
|
||||
yarn add -D nyc @storybook/addon-coverage
|
||||
yarn add -D @storybook/addon-coverage
|
||||
```
|
||||
|
@ -1,8 +1,8 @@
|
||||
```ts
|
||||
// .storybook/main.ts
|
||||
|
||||
// Imports Storybook's configuration API
|
||||
import type { StorybookConfig } from '@storybook/types';
|
||||
// Replace your-framework with the framework and builder you are using (e.g., react-webpack5, vue3-webpack5)
|
||||
import type { StorybookConfig } from '@storybook/your-framework';
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user