@storybook/addon-jest
Advanced tools
Comparing version 4.0.0-alpha.8 to 4.0.0-alpha.9
{ | ||
"name": "@storybook/addon-jest", | ||
"version": "4.0.0-alpha.8", | ||
"version": "4.0.0-alpha.9", | ||
"description": "React storybook addon that show component jest report", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@storybook/addons": "4.0.0-alpha.8", | ||
"@storybook/components": "4.0.0-alpha.8", | ||
"@storybook/addons": "4.0.0-alpha.9", | ||
"@storybook/components": "4.0.0-alpha.9", | ||
"babel-runtime": "^6.26.0", | ||
@@ -32,0 +32,0 @@ "emotion": "^9.1.3", |
@@ -43,3 +43,3 @@ # Storybook addon Jest | ||
You need to make sure the generated test-restuls file exists before you start storybook. | ||
You need to make sure the generated test-results file exists before you start storybook. | ||
During development you will likely start jest in watch-mode | ||
@@ -120,3 +120,3 @@ and so the json file will be re-generated every time code or tests change. | ||
- **options.results**: OBJECT jest output results. *mandatory* | ||
- **filesExt**: STRING test file extention. *optionnal*. This allow you to write "MyComponent" and not "MyComponent.test.js". It will be used as regex to find your file results. Default value is `((\\.specs?)|(\\.tests?))?(\\.js)?$`. That mean it will match: MyComponent.js, MyComponent.test.js, MyComponent.tests.js, MyComponent.spec.js, MyComponent.specs.js... | ||
- **filesExt**: STRING test file extention. *optional*. This allow you to write "MyComponent" and not "MyComponent.test.js". It will be used as regex to find your file results. Default value is `((\\.specs?)|(\\.tests?))?(\\.js)?$`. That mean it will match: MyComponent.js, MyComponent.test.js, MyComponent.tests.js, MyComponent.spec.js, MyComponent.specs.js... | ||
@@ -123,0 +123,0 @@ ## Usage with Angular |
@@ -67,4 +67,4 @@ import React from 'react'; | ||
<div className={className} role="progressbar"> | ||
<span style={{ width: `${successNumber / result.assertionResults.length * 100}%` }}> | ||
{`${successNumber / result.assertionResults.length * 100}%`} | ||
<span style={{ width: `${(successNumber / result.assertionResults.length) * 100}%` }}> | ||
{`${(successNumber / result.assertionResults.length) * 100}%`} | ||
</span> | ||
@@ -71,0 +71,0 @@ </div> |
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
5236127
+ Added@storybook/addons@4.0.0-alpha.9(transitive)
+ Added@storybook/channels@4.0.0-alpha.9(transitive)
+ Added@storybook/components@4.0.0-alpha.9(transitive)
- Removed@storybook/addons@4.0.0-alpha.8(transitive)
- Removed@storybook/channels@4.0.0-alpha.8(transitive)
- Removed@storybook/components@4.0.0-alpha.8(transitive)