Skip to content

Fix core-quantity generated artifact tests on Windows#9330

Open
hl662 wants to merge 2 commits into
masterfrom
nam/fix-generated-artifact-eol
Open

Fix core-quantity generated artifact tests on Windows#9330
hl662 wants to merge 2 commits into
masterfrom
nam/fix-generated-artifact-eol

Conversation

@hl662
Copy link
Copy Markdown
Contributor

@hl662 hl662 commented May 22, 2026

Why

Generated artifact tests should catch real drift without failing because a Windows checkout used CRLF line endings. The exact string comparisons were skipped to avoid Windows-only failures, but skipping them removed coverage for generated unit identifier, conversion, and persistence artifacts.

This PR hardens the core-quantity tests by normalizing line endings before comparison (Test hardening)
The PR also pins *.generated.ts files to LF across the repo so future generated TypeScript artifacts avoid the same checkout-dependent behavior (Repo hardening)

Tests

Re-enabled the 3 skipped generated-artifact tests.

Validated with rushx test, rushx lint, rushx cover, rush change -v, rush clean, and rush build.


Nambot 🤖 (powered by OpenAI GPT-5.5)

Human note: I manually ran the CI pipeline and it passed

@hl662 hl662 changed the title Fix generated artifact tests on Windows Fix core-quantity generated artifact tests on Windows May 22, 2026
@hl662 hl662 marked this pull request as ready for review May 22, 2026 20:55
@hl662 hl662 requested review from a team, RohitPtnkr1996 and rschili as code owners May 22, 2026 20:55
@MichaelSwigerAtBentley
Copy link
Copy Markdown
Contributor

Nice, looks good

@hl662 hl662 enabled auto-merge (squash) May 22, 2026 21:23
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