Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
498 B
Text
23 lines
498 B
Text
import { expect, test } from "vitest";
|
|
import * as z from "zod/v4";
|
|
|
|
declare module "zod/v4" {
|
|
interface ZodType {
|
|
/** @deprecated */
|
|
_classic(): string;
|
|
}
|
|
}
|
|
|
|
test("prototype extension", () => {
|
|
z.ZodType.prototype._classic = function () {
|
|
return "_classic";
|
|
};
|
|
|
|
// should pass
|
|
const result = z.string()._classic();
|
|
expect(result).toBe("_classic");
|
|
// expectTypeOf<typeof result>().toEqualTypeOf<string>();
|
|
|
|
// clean up
|
|
z.ZodType.prototype._classic = undefined;
|
|
});
|