test(shadcn): derive previous minor assertion (#10567)

* test(shadcn): derive previous minor assertion

* chore(changeset): add previous minor assertion

* chore: update changeset
This commit is contained in:
shadcn
2026-05-06 14:29:02 +04:00
committed by GitHub
parent bc2db187aa
commit 1c4a53a37a
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": patch
---
fix failing version derivation test

View File

@@ -94,7 +94,9 @@ describe("handleError", () => {
expect(logger.error).toHaveBeenCalledWith(
"You can also try a previous version to see if that works:"
)
expect(logger.error).toHaveBeenCalledWith("npx shadcn@4.5.0 add foo")
expect(logger.error).toHaveBeenCalledWith(
getPreviousMinorCommand(undefined, ["add", "foo"])
)
expect(exit).toHaveBeenCalledWith(1)
})
})