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

@testing-library/jest-native

Package Overview
Dependencies
Maintainers
16
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/jest-native - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

24

dist/index.js

@@ -10,2 +10,8 @@ Object.defineProperty(exports, "__esModule", {

});
Object.defineProperty(exports, "toBeEmpty", {
enumerable: true,
get: function get() {
return _toBeEmpty.toBeEmpty;
}
});
Object.defineProperty(exports, "toBeEnabled", {

@@ -17,6 +23,6 @@ enumerable: true,

});
Object.defineProperty(exports, "toBeEmpty", {
Object.defineProperty(exports, "toContainElement", {
enumerable: true,
get: function get() {
return _toBeEmpty.toBeEmpty;
return _toContainElement.toContainElement;
}

@@ -30,20 +36,14 @@ });

});
Object.defineProperty(exports, "toHaveTextContent", {
Object.defineProperty(exports, "toHaveStyle", {
enumerable: true,
get: function get() {
return _toHaveTextContent.toHaveTextContent;
return _toHaveStyle.toHaveStyle;
}
});
Object.defineProperty(exports, "toContainElement", {
Object.defineProperty(exports, "toHaveTextContent", {
enumerable: true,
get: function get() {
return _toContainElement.toContainElement;
return _toHaveTextContent.toHaveTextContent;
}
});
Object.defineProperty(exports, "toHaveStyle", {
enumerable: true,
get: function get() {
return _toHaveStyle.toHaveStyle;
}
});

@@ -50,0 +50,0 @@ var _toBeDisabled = require("./to-be-disabled");

@@ -6,9 +6,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

});
exports.ReactElementTypeError = void 0;
exports.checkReactElement = checkReactElement;
exports.getMessage = getMessage;
exports.getType = getType;
exports.getMessage = getMessage;
exports.matches = matches;
exports.normalize = normalize;
exports.printElement = printElement;
exports.ReactElementTypeError = void 0;

@@ -33,4 +33,8 @@ var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));

var _prettyFormat = _interopRequireDefault(require("pretty-format"));
var _prettyFormat = _interopRequireWildcard(require("pretty-format"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }

@@ -40,5 +44,4 @@

var _prettyFormat$plugins = _prettyFormat.default.plugins,
ReactTestComponent = _prettyFormat$plugins.ReactTestComponent,
ReactElement = _prettyFormat$plugins.ReactElement;
var ReactTestComponent = _prettyFormat.plugins.ReactTestComponent,
ReactElement = _prettyFormat.plugins.ReactElement;
var VALID_ELEMENTS = ['Image', 'Text', 'TextInput', 'Modal', 'View', 'RefreshControl', 'ScrollView', 'ActivityIndicator', 'ListView', 'ListViewDataSource'];

@@ -45,0 +48,0 @@

{
"name": "@testing-library/jest-native",
"version": "4.0.2",
"version": "4.0.3",
"description": "Custom jest matchers to test the state of React Native",

@@ -34,4 +34,4 @@ "main": "dist/index.js",

"jest-matcher-utils": "^24.0.0",
"pretty-format": "^27.3.1",
"ramda": "^0.26.1",
"pretty-format": "^24.0.0",
"redent": "^2.0.0"

@@ -47,3 +47,3 @@ },

"husky": "^1.3.1",
"jest": "^24.7.1",
"jest": "^27.0.6",
"metro-react-native-babel-preset": "^0.52.0",

@@ -50,0 +50,0 @@ "prettier": "^1.16.4",

@@ -120,3 +120,3 @@ <div align="center">

This matcher will check if the element or its parent has a `disabled` prop, or if it has
`accessibilityState={{disabled: true]}.
`accessibilityState={{disabled: true}}.

@@ -123,0 +123,0 @@ It also works with `accessibilityStates={['disabled']}` for now. However, this prop is deprecated in

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