Skip to content

Commit 560975c

Browse files
fix
1 parent d5a3f68 commit 560975c

File tree

1 file changed

+1
-1
lines changed
  • packages/plugin-figma-blade-coverage/src

1 file changed

+1
-1
lines changed

packages/plugin-figma-blade-coverage/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ const calculateCoverage = (node: SceneNode): CoverageMetrics | null => {
525525

526526
if (
527527
getParentNode(traversedNode)?.type !== 'PAGE' &&
528+
getParentNode(traversedNode)?.type !== 'SECTION' &&
528529
!NODES_SKIP_FROM_COVERAGE.includes(traversedNode.type) &&
529530
// if the frame instances are from Blade's components then we don't want to include them in the count because these are components with slots
530531
!ignoreInstanceFrameNodeNames.includes(traversedNode.name)
531532
) {
532-
console.log({ type: traversedNode.type, name: traversedNode.name });
533533
// exclude the main frame itself from the count to remove false negatives
534534
totalLayers++;
535535
}

0 commit comments

Comments
 (0)