Skip to content

test(models): add schema unit tests#116

Merged
bitbacchus merged 1 commit into
ecomod-code:crash-fixfrom
bitbacchus:claude/add-models-unit-tests-LuJF5
May 15, 2026
Merged

test(models): add schema unit tests#116
bitbacchus merged 1 commit into
ecomod-code:crash-fixfrom
bitbacchus:claude/add-models-unit-tests-LuJF5

Conversation

@bitbacchus
Copy link
Copy Markdown
Member

165 tests across 6 files cover all Zod schemas in packages/models/src/data/: base (timestampSchema, uidSchema, actorUriSchema, idEntitySchema, validationOkay), user, statistics, comment, session, and quiz (answerSchema, questionSchema, quizRunSchema, quizSchema, testPackage, examAnswer, examFeedback, helper fns). Each schema is tested for valid input, missing required fields, wrong types, and boundary/default values.

165 tests across 6 files cover all Zod schemas in packages/models/src/data/:
base (timestampSchema, uidSchema, actorUriSchema, idEntitySchema, validationOkay),
user, statistics, comment, session, and quiz (answerSchema, questionSchema,
quizRunSchema, quizSchema, testPackage, examAnswer, examFeedback, helper fns).
Each schema is tested for valid input, missing required fields, wrong types,
and boundary/default values.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bitbacchus bitbacchus merged commit 49706f7 into ecomod-code:crash-fix May 15, 2026
2 checks passed
@bitbacchus bitbacchus deleted the claude/add-models-unit-tests-LuJF5 branch May 15, 2026 13:16
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.

2 participants