Skip to content

test: build the expected message template path with the platform separator - #35

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 expectation was hand-built with a hard-coded "/", while the source emits __DIR__ (native separator) followed by the literal. The two only agreed on POSIX, so the test failed on Windows even though the path was correct.

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.

…rator

The expectation was hand-built with a hard-coded "/", while the source emits `__DIR__` (native separator) followed by the literal. The two only agreed on POSIX, so the test failed on Windows even though the path was correct.

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 0353ded 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