Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof "Chris" Radomski committed Nov 2, 2023
1 parent cf4c6b2 commit df01027
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions README.md
Expand Up @@ -19,7 +19,7 @@ Compatibility:
"vitest": "^0.34.6"
```

Usage:
Description:

Addon meant to display Vitest unit test results in a new Stoybook panel. Developed and tested with React.
Simply add it to the addon list in your Storybook config, and then you can use it in any story.
Expand All @@ -36,21 +36,20 @@ Example usage:
import vitestResults from "./unit-test-results.json";
/.../
export default {
title: "Example/Button",
component: Button,
parameters: {
vitest: {
testFile: "Button.test.tsx",
testResults: vitestResults,
},
},
title: "Example/Button",
component: Button,
parameters: {
vitest: {
testFile: "Button.test.tsx",
testResults: vitestResults,
},
},
};
/.../
```

![](2022-04-01-22-48-00.png)

```

```
Also see https://storybook.js.org/addons/storybook_vitest_addon

0 comments on commit df01027

Please sign in to comment.