eslint-plugin-jest 26.2.1 → 26.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -582,14 +582,8 @@ const collectReferences = scope => {
582
582
  if (ref.defs.length === 0) {
583
583
  continue;
584
584
  }
585
- /* istanbul ignore if */
586
585
 
587
-
588
- if (ref.defs.length > 1) {
589
- throw new Error(`Reference unexpected had more than one definition - please file a github issue at https://github.com/jest-community/eslint-plugin-jest`);
590
- }
591
-
592
- const [def] = ref.defs;
586
+ const def = ref.defs[ref.defs.length - 1];
593
587
  const importDetails = describePossibleImportDef(def);
594
588
 
595
589
  if (importDetails) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "26.2.1",
3
+ "version": "26.2.2",
4
4
  "description": "ESLint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",