@storybook/addon-jest
Advanced tools
Comparing version 0.0.0-pr-29256-sha-cd1d83f5 to 0.0.0-pr-29267-sha-d499768c
{ | ||
"name": "@storybook/addon-jest", | ||
"version": "0.0.0-pr-29256-sha-cd1d83f5", | ||
"version": "0.0.0-pr-29267-sha-d499768c", | ||
"description": "React storybook addon that show component jest report", | ||
@@ -61,3 +61,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@storybook/icons": "^1.2.10", | ||
"@storybook/icons": "^1.2.12", | ||
"react": "^18.2.0", | ||
@@ -69,3 +69,3 @@ "react-dom": "^18.2.0", | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-29256-sha-cd1d83f5" | ||
"storybook": "^0.0.0-pr-29267-sha-d499768c" | ||
}, | ||
@@ -72,0 +72,0 @@ "publishConfig": { |
@@ -5,3 +5,3 @@ # Storybook addon Jest | ||
[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support) | ||
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support) | ||
@@ -24,3 +24,3 @@ [![Storybook Jest Addon Demo](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/jest/docs/storybook-addon-jest.gif)](http://storybooks-official.netlify.com/?selectedKind=Addons%7Cjest&selectedStory=withTests&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Ftests%2Fpanel) | ||
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/#configure-your-storybook-project): | ||
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project): | ||
@@ -89,3 +89,3 @@ ```js | ||
In your story file, add a [decorator](https://storybook.js.org/docs/react/writing-stories/decorators) to your story's default export to display the results: | ||
In your story file, add a [decorator](https://storybook.js.org/docs/writing-stories/decorators) to your story's default export to display the results: | ||
@@ -105,3 +105,3 @@ ```js | ||
You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/react/writing-stories/parameters), for example: | ||
You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/writing-stories/parameters), for example: | ||
@@ -137,3 +137,3 @@ ```js | ||
To avoid importing the results of the tests in each story, you can update | ||
your [`.storybook/preview.js`](https://storybook.js.org/docs/react/configure/#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined: | ||
your [`.storybook/preview.js`](https://storybook.js.org/docs/configure#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined: | ||
@@ -140,0 +140,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37961