Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/addon-jest

Package Overview
Dependencies
Maintainers
10
Versions
1920
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-jest - npm Package Compare versions

Comparing version 4.0.0-alpha.8 to 4.0.0-alpha.9

6

package.json
{
"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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc