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

react-component-tester

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-component-tester - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "react-component-tester",
"version": "0.0.3",
"version": "0.0.4",
"description": "A simple helper to make testing react components with shallow rendering easier",

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

@@ -150,7 +150,7 @@ const stampit = require('stampit');

const ignore = ['constructor', 'componentWillUnmount', 'render'];
for (const key of Object.getOwnPropertyNames(Component.prototype)) {
if (!~ignore.indexOf(key)) {
sinon.spy(Component.prototype, key);
Object.getOwnPropertyNames(Component.prototype).forEach(method => {
if (!~ignore.indexOf(method)) {
sinon.spy(Component.prototype, method);
}
}
});
this.ComponentToUse = Component;

@@ -157,0 +157,0 @@ return this;

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