From d10dc07d9dc933fe9584b3e13704001527896859 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 17 Feb 2021 17:35:49 +1300 Subject: [PATCH 1/2] fix(require-top-level-describe): import function that actually exists (#763) --- src/rules/require-top-level-describe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/require-top-level-describe.ts b/src/rules/require-top-level-describe.ts index c70b6d90c..f9c95ffea 100644 --- a/src/rules/require-top-level-describe.ts +++ b/src/rules/require-top-level-describe.ts @@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils'; import { createRule, isDescribe, - isDescribeEach, + isEachCall, isHook, isTestCase, } from './utils'; @@ -50,7 +50,7 @@ export default createRule({ } }, 'CallExpression:exit'(node: TSESTree.CallExpression) { - if (isDescribe(node) && !isDescribeEach(node)) { + if (isDescribe(node) && !isEachCall(node)) { numberOfDescribeBlocks--; } }, From 01563ec50cc564405eb87298e8201b931a99c0f3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 17 Feb 2021 04:38:53 +0000 Subject: [PATCH 2/2] chore(release): 24.1.5 [skip ci] ## [24.1.5](https://github.com/jest-community/eslint-plugin-jest/compare/v24.1.4...v24.1.5) (2021-02-17) ### Bug Fixes * **require-top-level-describe:** import function that actually exists ([#763](https://github.com/jest-community/eslint-plugin-jest/issues/763)) ([d10dc07](https://github.com/jest-community/eslint-plugin-jest/commit/d10dc07d9dc933fe9584b3e13704001527896859)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29d005323..84afbc440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [24.1.5](https://github.com/jest-community/eslint-plugin-jest/compare/v24.1.4...v24.1.5) (2021-02-17) + + +### Bug Fixes + +* **require-top-level-describe:** import function that actually exists ([#763](https://github.com/jest-community/eslint-plugin-jest/issues/763)) ([d10dc07](https://github.com/jest-community/eslint-plugin-jest/commit/d10dc07d9dc933fe9584b3e13704001527896859)) + ## [24.1.4](https://github.com/jest-community/eslint-plugin-jest/compare/v24.1.3...v24.1.4) (2021-02-16) diff --git a/package.json b/package.json index f5f2394df..f70a8dbad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-jest", - "version": "24.1.4", + "version": "24.1.5", "description": "Eslint rules for Jest", "keywords": [ "eslint",