Skip to content

fix(test): Windows m87 global-install probe mock [superseded — 4ed08d1 on main] - #52

Open
Roarpeng wants to merge 1 commit into
mainfrom
cursor/m87-windows-global-probe-1c71
Open

Roarpeng wants to merge 1 commit into
mainfrom
cursor/m87-windows-global-probe-1c71

Conversation

@Roarpeng

@Roarpeng Roarpeng commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

Superseded

Maintainer landed the same fix on main as 4ed08d1 (fix(tests): make the BOM/banner probe test separator-agnostic). Windows validate-platforms is green there (32/32).

This PR is obsolete — do not merge. Same root cause as #51.


Original: the m87 exists mock used p.includes("\\") to pick Windows vs POSIX expected paths. On win32, path.join("/usr/lib/node_modules", …) still contains backslashes, so the POSIX fixture compared against C:\npm\node_modules and found was undefined.

Open in Web Open in Cursor 

On win32, path.join of a POSIX npm root still contains backslashes, so
the exists mock compared the POSIX case against C:\npm\node_modules and
the BOM/CRLF probe test failed on validate-platforms (windows-latest).
Pass the expected root per case instead.
@Roarpeng
Roarpeng marked this pull request as ready for review September 15, 2026 13:22
@cursor cursor Bot changed the title fix(test): Windows m87 global-install probe mock no longer guesses platform from backslashes fix(test): Windows m87 global-install probe mock [superseded — 4ed08d1 on main] Sep 15, 2026
@Roarpeng
Roarpeng force-pushed the cursor/m87-windows-global-probe-1c71 branch from 57f4cdb to 209951e Compare October 1, 2026 01:13
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