From aa1077fe23b84641c5e558a441dbb0d4233b7a77 Mon Sep 17 00:00:00 2001 From: shawn Date: Thu, 17 Sep 2026 21:48:40 +0800 Subject: [PATCH] test(scripts): align pnpm resolution expectation across platforms (#5519) --- backend/tests/test_check_script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/tests/test_check_script.py b/backend/tests/test_check_script.py index ea615d738..d6f5163c8 100644 --- a/backend/tests/test_check_script.py +++ b/backend/tests/test_check_script.py @@ -31,7 +31,8 @@ def test_find_pnpm_command_prefers_resolved_executable(monkeypatch): monkeypatch.setattr(pnpm_script.shutil, "which", fake_which) - assert pnpm_script.find_pnpm_command() == [r"C:\Users\tester\AppData\Roaming\npm\pnpm.CMD"] + expected_path = r"C:\Users\tester\AppData\Roaming\npm\pnpm.cmd" if pnpm_script.os.name == "nt" else r"C:\Users\tester\AppData\Roaming\npm\pnpm.CMD" + assert pnpm_script.find_pnpm_command() == [expected_path] def test_find_pnpm_command_falls_back_to_corepack(monkeypatch):