@immense/vue-pom-generator 1.0.75 → 1.0.77

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.
package/dist/index.mjs CHANGED
@@ -7316,7 +7316,8 @@ function createTestIdTransform(componentName, componentHierarchyMap, nativeWrapp
7316
7316
  (p) => p.type === NodeTypes.DIRECTIVE && p.name === "bind" && p.arg?.type === NodeTypes.SIMPLE_EXPRESSION && p.arg.content === testIdAttribute && !!p.exp
7317
7317
  );
7318
7318
  }
7319
- const parentElement = !parentIsRoot && context?.parent?.type === NodeTypes.ELEMENT ? context.parent : null;
7319
+ const grandParent = context.grandParent;
7320
+ const parentElement = !parentIsRoot && context?.parent?.type === NodeTypes.ELEMENT ? context.parent : !parentIsRoot && grandParent?.type === NodeTypes.ELEMENT ? grandParent : null;
7320
7321
  hierarchyMap.set(element, parentElement);
7321
7322
  const normalizeFilePath = (filePath) => path.normalize(safeRealpath2(path.resolve(filePath)));
7322
7323
  const normalizedFilePath = normalizeFilePath(context.filename);