Socket
Socket
Sign inDemoInstall

eslint-plugin-testing-library

Package Overview
Dependencies
Maintainers
3
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-testing-library - npm Package Compare versions

Comparing version 5.8.0 to 5.9.0

8

node-utils/index.js

@@ -269,2 +269,8 @@ "use strict";

exports.getAssertNodeInfo = getAssertNodeInfo;
const matcherNamesHandlePromise = [
'resolves',
'rejects',
'toResolve',
'toReject',
];
function hasClosestExpectResolvesRejects(node) {

@@ -278,3 +284,3 @@ if ((0, is_node_of_type_1.isCallExpression)(node) &&

return (utils_1.ASTUtils.isIdentifier(expectMatcher) &&
(expectMatcher.name === 'resolves' || expectMatcher.name === 'rejects'));
matcherNamesHandlePromise.includes(expectMatcher.name));
}

@@ -281,0 +287,0 @@ if (!node.parent) {

2

package.json
{
"name": "eslint-plugin-testing-library",
"version": "5.8.0",
"version": "5.9.0",
"description": "ESLint rules for Testing Library",

@@ -5,0 +5,0 @@ "keywords": [

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