Skip to content

test: assert the resolved template path in the platform separator - #11

Merged
tyrsson merged 1 commit into
1.0.xfrom
fix/windows-template-path-assertions
Oct 10, 2026
Merged

tyrsson merged 1 commit into
1.0.xfrom
fix/windows-template-path-assertions

Conversation

@tyrsson

@tyrsson tyrsson commented Oct 10, 2026

Copy link
Copy Markdown
Member

The resolver returns a native absolute path, so the forward-slash suffix only matched on POSIX. The suffix is now converted to the platform separator before the comparison.

No source change: the paths themselves are valid on both platforms, only the expectation was platform-specific.

Verified against the pinned Mago (1.51.2): format --check, lint, analyze and guard all exit 0, and the affected unit tests pass.

The resolver returns a native absolute path, so the forward-slash suffix only matched on POSIX. The suffix is now converted to the platform separator before the comparison.

Signed-off-by: Joey Smith <jsmith@webinertia.net>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson
tyrsson merged commit e5180eb into 1.0.x Oct 10, 2026
12 checks passed
@tyrsson
tyrsson deleted the fix/windows-template-path-assertions branch October 10, 2026 02:25
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.

1 participant