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.1.0 to 4.1.1

2

package.json
{
"name": "jest-styled-components",
"version": "4.1.0",
"version": "4.1.1",
"description": "Jest utilities for Styled Components",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -33,6 +33,9 @@ const css = require('css')

const getRules = () =>
StyleSheet.globalStyleSheet.sheet && StyleSheet.componentStyleSheet.sheet
? StyleSheet.rules().map(rule => rule.cssText).join('\n')
: ''
const getCSS = () => {
const style = isOverV2()
? getStyle()
: StyleSheet.rules().map(rule => rule.cssText).join('\n')
const style = isOverV2() ? getStyle() : getRules()

@@ -49,3 +52,3 @@ return css.parse(style)

const getHashes = () =>
getClassNames().concat(getComponentIDs()).filter(Boolean)
isOverV2() ? getClassNames().concat(getComponentIDs()).filter(Boolean) : []

@@ -52,0 +55,0 @@ module.exports = {

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