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

eslint-plugin-testing-library

Package Overview
Dependencies
Maintainers
2
Versions
164
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 2.2.2 to 2.2.3

11

lib/rules/no-get-by-for-checking-element-not-present.js

@@ -5,3 +5,8 @@ 'use strict';

const falsyMatchers = ['toBeNull', 'toBeFalsy'];
const FALSY_MATCHERS = ['toBeNull', 'toBeFalsy'];
const NOT_ALLOWED_NEGATED_MATCHERS = [
'toBeInTheDocument',
'toBeTruthy',
'toBeDefined',
];

@@ -38,3 +43,3 @@ module.exports = {

if (!falsyMatchers.includes(negatedMatcher)) {
if (NOT_ALLOWED_NEGATED_MATCHERS.includes(negatedMatcher)) {
return context.report({

@@ -47,3 +52,3 @@ node,

if (falsyMatchers.includes(matcher)) {
if (FALSY_MATCHERS.includes(matcher)) {
return context.report({

@@ -50,0 +55,0 @@ node,

{
"name": "eslint-plugin-testing-library",
"version": "2.2.2",
"version": "2.2.3",
"description": "ESLint rules for Testing Library",

@@ -33,2 +33,3 @@ "keywords": [

"test:ci": "jest --coverage",
"test:watch": "npm run test:local -- --watch",
"test": "is-ci test:ci test:local",

@@ -35,0 +36,0 @@ "semantic-release": "semantic-release"

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

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

@@ -192,2 +192,3 @@

<td align="center"><a href="http://arvigeus.github.com"><img src="https://avatars2.githubusercontent.com/u/4872470?v=4" width="100px;" alt=""/><br /><sub><b>Nikolay Stoynov</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=arvigeus" title="Documentation">📖</a></td>
<td align="center"><a href="https://marudor.de"><img src="https://avatars0.githubusercontent.com/u/1881725?v=4" width="100px;" alt=""/><br /><sub><b>marudor</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=marudor" title="Code">💻</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=marudor" title="Tests">⚠️</a></td>
</tr>

@@ -194,0 +195,0 @@ </table>

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