Skip to content

Commit

Permalink
Merge pull request #11 from storybookjs/valentin/addon-vitest
Browse files Browse the repository at this point in the history
Update Readme.md related to addon-vitest
  • Loading branch information
valentinpalkovic authored Aug 27, 2024
2 parents 98e4333 + e47d2b7 commit c25c62a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This plugin is necessary to run portable stories in Vitest, as it provides the n

(⚠️ **Experimental**)

The experimental `@storybook/experimental-vitest-plugin` can be used to automatically transform your stories at Vitest runtime to in-memory test files. This allows you to run your stories in a Vitest environment without needing to manually transform your stories. Please visit https://github.com/storybookjs/vitest-plugin for more information.
The experimental `@storybook/experimental-addon-vitest` can be used to automatically transform your stories at Vitest runtime to in-memory test files. This allows you to run your stories in a Vitest environment without needing to manually transform your stories. Please visit https://storybook.js.org/docs/8.3/writing-tests/test-runner-with-vitest for more information.

## Limitations and differences to the Webpack5-based integration of Next.js in Storybook

Expand Down Expand Up @@ -95,8 +95,9 @@ When testing components that rely on Next.js Server Actions, you need to ensure
```js
// @vitest-environment jsdom
```

2. To apply it to all tests, adjust your Vitest configuration:

```ts
// vitest.config.ts
import { defineConfig } from "vite";
Expand Down

0 comments on commit c25c62a

Please sign in to comment.