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

jest-styled-components

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-styled-components - npm Package Compare versions

Comparing version 4.0.0-5 to 4.0.0-6

5

package.json
{
"name": "jest-styled-components",
"version": "4.0.0-5",
"version": "4.0.0-6",
"description": "Jest utilities for Styled Components",

@@ -40,3 +40,4 @@ "main": "./src/index.js",

"peerDependencies": {
"styled-components": "^2.1.0"
"jest-matcher-utils": "^20.0.3",
"styled-components": "^2.0.0"
},

@@ -43,0 +44,0 @@ "jest": {

4

src/matchers/toHaveStyleRule.js
const css = require('css')
const { ShallowWrapper, ReactWrapper } = require('enzyme')
const { printReceived, printExpected } = require('jest-matcher-utils')

@@ -11,4 +10,3 @@ const { getCSS } = require('../utils')

className = received.props.className
} else if (received instanceof ShallowWrapper ||
received instanceof ReactWrapper) {
} else if (typeof received.find === 'function') {
className = received.find('[className]').first().prop('className')

@@ -15,0 +13,0 @@ }

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