mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
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:
5
.changeset/angry-stars-pick.md
Normal file
5
.changeset/angry-stars-pick.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shadcn": patch
|
||||
---
|
||||
|
||||
fix failing version derivation test
|
||||
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user