storybook_vitest_addon 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Compatibility:
|
|
|
19
19
|
"vitest": "^0.34.6"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Description:
|
|
23
23
|
|
|
24
24
|
Addon meant to display Vitest unit test results in a new Stoybook panel. Developed and tested with React.
|
|
25
25
|
Simply add it to the addon list in your Storybook config, and then you can use it in any story.
|
|
@@ -36,14 +36,14 @@ Example usage:
|
|
|
36
36
|
import vitestResults from "./unit-test-results.json";
|
|
37
37
|
/.../
|
|
38
38
|
export default {
|
|
39
|
-
title: "Example/Button",
|
|
40
|
-
component: Button,
|
|
41
|
-
parameters: {
|
|
42
|
-
vitest: {
|
|
43
|
-
testFile: "Button.test.tsx",
|
|
44
|
-
testResults: vitestResults,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
39
|
+
title: "Example/Button",
|
|
40
|
+
component: Button,
|
|
41
|
+
parameters: {
|
|
42
|
+
vitest: {
|
|
43
|
+
testFile: "Button.test.tsx",
|
|
44
|
+
testResults: vitestResults,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
47
|
};
|
|
48
48
|
/.../
|
|
49
49
|
|
|
@@ -51,6 +51,5 @@ testResults: vitestResults,
|
|
|
51
51
|
|
|
52
52
|

|
|
53
53
|
|
|
54
|
-
```
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
Also see https://storybook.js.org/addons/storybook_vitest_addon
|