Skip to content

Conversation

@looskie
Copy link
Member

@looskie looskie commented Nov 25, 2025

No description provided.

@vercel
Copy link

vercel bot commented Nov 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Error Error Nov 25, 2025 3:22am

const schema = k.nativeEnum(Status);

it('should accept valid numeric enum values', () => {
assert.strictEqual(schema.parse(0), 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add enum tests for like

assert.strictEqual(schema.parse(Status.Pending), 0);

even though in theory it's still 0, it's nice to assure that contract

});
});

describe('const enum compatibility', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a const enum, this is an as const object. we should rename this test

a const enum is already a typescript thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants