Updates snippets

This commit is contained in:
jonniebigodes 2022-11-30 21:06:19 +00:00
parent ad16d1b2fe
commit 7377b505ab
4 changed files with 6 additions and 6 deletions

View File

@ -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/**'],

View File

@ -1,3 +1,3 @@
```shell
npm install nyc @storybook/addon-coverage --save-dev
npm install @storybook/addon-coverage --save-dev
```

View File

@ -1,3 +1,3 @@
```shell
yarn add -D nyc @storybook/addon-coverage
yarn add -D @storybook/addon-coverage
```

View File

@ -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: [],