Socket
Socket
Sign inDemoInstall

eslint-plugin-jest

Package Overview
Dependencies
Maintainers
11
Versions
325
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest - npm Package Compare versions

Comparing version 24.5.0 to 24.5.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [24.5.1](https://github.com/jest-community/eslint-plugin-jest/compare/v24.5.0...v24.5.1) (2021-10-04)
### Bug Fixes
* **prefer-to-be:** don't consider RegExp literals as `toBe`-able ([#922](https://github.com/jest-community/eslint-plugin-jest/issues/922)) ([99b6d42](https://github.com/jest-community/eslint-plugin-jest/commit/99b6d429e697d60645b4bc64ee4ae34d7016118c))
# [24.5.0](https://github.com/jest-community/eslint-plugin-jest/compare/v24.4.3...v24.5.0) (2021-09-29)

@@ -2,0 +9,0 @@

5

lib/rules/prefer-to-be.js

@@ -23,3 +23,6 @@ "use strict";

const isPrimitiveLiteral = matcher => getFirstArgument(matcher).type === _experimentalUtils.AST_NODE_TYPES.Literal;
const isPrimitiveLiteral = matcher => {
const firstArg = getFirstArgument(matcher);
return firstArg.type === _experimentalUtils.AST_NODE_TYPES.Literal && !('regex' in firstArg);
};

@@ -26,0 +29,0 @@ const getFirstArgument = matcher => {

2

package.json
{
"name": "eslint-plugin-jest",
"version": "24.5.0",
"version": "24.5.1",
"description": "Eslint rules for Jest",

@@ -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