New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-test-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-test-wrapper - npm Package Compare versions

Comparing version 3.0.5 to 3.1.0

10

enzyme/WrapperWithRedux.d.ts

@@ -13,2 +13,6 @@ import { ReactWrapper } from "enzyme";

/**
* Determines whether arrays in Redux state are merged when rendering the component.
*/
protected isMergingReduxArrays: boolean;
/**
* The default Redux store state for all test scenarios for the current test suite.

@@ -44,2 +48,8 @@ *

/**
* Toggles whether to merge arrays in the Redux state
*
* @param value The new value
*/
withMergedReduxArrays: (value: boolean) => this;
/**
* Sets the default Redux store state used by all test scenarios for the current test suite.

@@ -46,0 +56,0 @@ *

15

enzyme/WrapperWithRedux.js

@@ -69,2 +69,6 @@ "use strict";

/**
* Determines whether arrays in Redux state are merged when rendering the component.
*/
_this.isMergingReduxArrays = true;
/**
* The default Redux store state for all test scenarios for the current test suite.

@@ -94,2 +98,11 @@ *

/**
* Toggles whether to merge arrays in the Redux state
*
* @param value The new value
*/
_this.withMergedReduxArrays = function (value) {
_this.isMergingReduxArrays = value;
return _this;
};
/**
* Sets the default Redux store state used by all test scenarios for the current test suite.

@@ -198,3 +211,3 @@ *

get: function () {
return (0, ts_deepmerge_1.default)(this.defaultReduxState, this.scenarioReduxState);
return ts_deepmerge_1.default.withOptions({ mergeArrays: this.isMergingReduxArrays }, this.defaultReduxState, this.scenarioReduxState);
},

@@ -201,0 +214,0 @@ enumerable: false,

16

package.json

@@ -6,3 +6,3 @@ {

"license": "ISC",
"version": "3.0.5",
"version": "3.1.0",
"keywords": [

@@ -79,7 +79,7 @@ "component",

"@types/enzyme": "^3.10.12",
"@types/jest": "^29.0.2",
"@types/jest": "^29.0.3",
"@types/react": "^17.0.14",
"@types/react-redux": "^7.1.24",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",

@@ -89,3 +89,3 @@ "cross-env": "^7.0.3",

"enzyme-to-json": "^3.6.2",
"eslint": "^8.23.1",
"eslint": "^8.24.0",
"eslint-config-voodoocreation": "^3.0.2",

@@ -105,7 +105,7 @@ "eslint-plugin-import": "^2.26.0",

"react-intl": "^6.1.1",
"react-redux": "^8.0.2",
"react-redux": "^8.0.4",
"redux": "^4.2.0",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.1",
"typescript": "^4.8.3",
"ts-jest": "^29.0.2",
"typescript": "^4.8.4",
"typescript-fsa": "^3.0.0",

@@ -112,0 +112,0 @@ "typescript-fsa-reducers": "^1.2.2"

@@ -13,2 +13,6 @@ import { Queries, queries as defaultQueries, RenderResult } from "@testing-library/react";

/**
* Determines whether arrays in Redux state are merged when rendering the component.
*/
protected isMergingReduxArrays: boolean;
/**
* The default Redux store state for all test scenarios for the current test suite.

@@ -44,2 +48,8 @@ *

/**
* Toggles whether to merge arrays in the Redux state
*
* @param value The new value
*/
withMergedReduxArrays: (value: boolean) => this;
/**
* Sets the default Redux store state used by all test scenarios for the current test suite.

@@ -46,0 +56,0 @@ *

@@ -71,2 +71,6 @@ "use strict";

/**
* Determines whether arrays in Redux state are merged when rendering the component.
*/
_this.isMergingReduxArrays = true;
/**
* The default Redux store state for all test scenarios for the current test suite.

@@ -96,2 +100,11 @@ *

/**
* Toggles whether to merge arrays in the Redux state
*
* @param value The new value
*/
_this.withMergedReduxArrays = function (value) {
_this.isMergingReduxArrays = value;
return _this;
};
/**
* Sets the default Redux store state used by all test scenarios for the current test suite.

@@ -186,3 +199,3 @@ *

get: function () {
return (0, ts_deepmerge_1.default)(this.defaultReduxState, this.scenarioReduxState);
return ts_deepmerge_1.default.withOptions({ mergeArrays: this.isMergingReduxArrays }, this.defaultReduxState, this.scenarioReduxState);
},

@@ -189,0 +202,0 @@ enumerable: false,

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