We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c1cac commit b503c0aCopy full SHA for b503c0a
1 file changed
packages/common/test/Type.test.ts
@@ -3063,4 +3063,18 @@ describe("Standard Schema V1", () => {
3063
number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive">
3064
>();
3065
});
3066
+
3067
+ test("Vitest schemaMatching interoperability", () => {
3068
+ expect(1).toEqual(expect.schemaMatching(PositiveInt));
3069
3070
+ const user = {
3071
+ name: "Alice",
3072
+ age: 30,
3073
+ };
3074
3075
+ expect(user).toEqual({
3076
+ name: expect.schemaMatching(NonEmptyTrimmedString100),
3077
+ age: expect.schemaMatching(PositiveInt),
3078
+ });
3079
3080
0 commit comments