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

jest-emotion

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-emotion - npm Package Compare versions

Comparing version 9.2.2 to 9.2.4

6

lib/utils.js

@@ -11,4 +11,6 @@ 'use strict';

function getClassNamesFromTestRenderer(selectors, node) {
var props = node.props;
function getClassNamesFromTestRenderer(selectors, _ref) {
var _ref$props = _ref.props,
props = _ref$props === undefined ? {} : _ref$props;
return getClassNames(selectors, props.className || props.class);

@@ -15,0 +17,0 @@ }

{
"name": "jest-emotion",
"version": "9.2.2",
"version": "9.2.4",
"description": "Jest utilities for emotion",
"main": "lib/index.js",
"types": "types/index.d.ts",
"files": [

@@ -13,2 +14,3 @@ "src",

"babel": "babel src -d lib",
"test:typescript": "dtslint types",
"watch": "babel src -d lib --watch",

@@ -18,2 +20,3 @@ "clean": "rimraf lib"

"dependencies": {
"@types/jest": "^23.0.2",
"chalk": "^2.4.1",

@@ -24,3 +27,6 @@ "css": "^2.2.1"

"babel-cli": "^6.24.1",
"dtslint": "^0.3.0",
"npm-run-all": "^4.0.2",
"preact": "^8.2.9",
"preact-render-to-json": "^3.6.6",
"pretty-format": "^22.4.3",

@@ -27,0 +33,0 @@ "rimraf": "^2.6.1"

@@ -7,4 +7,3 @@ // @flow

function getClassNamesFromTestRenderer(selectors, node) {
const props = node.props
function getClassNamesFromTestRenderer(selectors, { props = {} }) {
return getClassNames(selectors, props.className || props.class)

@@ -11,0 +10,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