这是indexloc提供的服务,不要输入任何密码
Skip to content

Zod tests still use deprecated functions #5448

@ThanGerlek

Description

@ThanGerlek

Description

Several test files in v4/classic still use deprecated or legacy forms of various functions (z.string().date() instead of z.iso.date(), z.number().safe() instead of z.int(), etc.).

Some of these are unrelated test cases that happen to use deprecated forms (like z.string().email() in a template literal test), which simply need to be migrated. Others are relevant functionality tests (like z.string.email() in an email validation test)--the tests are currently somewhat inconsistent about using current or deprecated versions, and this should be standardized.

Decisions to make

When testing functionality that has both current and deprecated versions, should we test just the new, just the old, or both?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions