eslint-plugin-jest 28.13.4 → 28.13.5

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.
@@ -215,9 +215,13 @@ const describeImportDefAsImport = def => {
215
215
  if (def.parent.importKind === 'type') {
216
216
  return null;
217
217
  }
218
+ let imported = def.node.imported.name ?? '';
219
+ if ('value' in def.node.imported) {
220
+ imported = def.node.imported.value;
221
+ }
218
222
  return {
219
223
  source: def.parent.source.value,
220
- imported: def.node.imported.name,
224
+ imported,
221
225
  local: def.node.local.name
222
226
  };
223
227
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "28.13.4",
3
+ "version": "28.13.5",
4
4
  "description": "ESLint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",