Skip to content

Add test for encounteredNonImportNodes logic - #614

Merged
RyanZim merged 2 commits into
masterfrom
ryan/add-layer-content-test
Oct 9, 2026
Merged

RyanZim merged 2 commits into
masterfrom
ryan/add-layer-content-test

Conversation

@RyanZim

@RyanZim RyanZim commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

While testing #613, I realized we have no unit test that actually exercises the encounteredNonImportNodes logic (added in #574) here:

else if (
node.name === "layer" &&
!encounteredNonImportNodes &&
!node.nodes
)
stmt = parseLayer(result, node, conditions, from)
} else if (node.type !== "comment") {
encounteredNonImportNodes = true
}

@RyanZim
RyanZim requested a review from romainmenke October 9, 2026 02:02

@romainmenke romainmenke left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this 🙇

@RyanZim
RyanZim merged commit f9bb3d6 into master Oct 9, 2026
3 checks passed
@RyanZim
RyanZim deleted the ryan/add-layer-content-test branch October 9, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants