fix(doctor): quote paths and respect version channels in fix messages

This commit is contained in:
YeonGyu-Kim
2026-03-03 00:31:00 +09:00
parent d4033da41a
commit 3d66a30406
4 changed files with 130 additions and 3 deletions
@@ -0,0 +1,18 @@
import { describe, expect, it } from "bun:test"
import { getSuggestedInstallTag } from "./system-loaded-version"
describe("system loaded version", () => {
describe("getSuggestedInstallTag", () => {
it("returns prerelease channel when current version is prerelease", () => {
//#given
const currentVersion = "3.2.0-beta.4"
//#when
const installTag = getSuggestedInstallTag(currentVersion)
//#then
expect(installTag).toBe("beta")
})
})
})