Closed zkoppert closed 2 months ago
Nice! You can add tests for the backend like in this example. Just pass your invalid value here
You can use this test case to base it on
✅ Added a test for going over the limit cc79061
👎🏻 Not happy with how the error.message
looks in the expect statement. It's a multiline string. Open to any ideas/suggestions/improvements!
@zkoppert I think it’s good as is but you can always do a .includes("String must contain at most 100 character(s)")
on the error message
✅ More readable test assertion
I checked out the contributing doc and didn't see anything about deploying the change. Should I deploy before merge/after merge/not at all?
We've been deploying after merges. The deployment is from the internal repo which is (I think) why it's not mentioned here.
Pull Request
Proposed Changes
fixes #135
This pull request limits the length of repository names in the application. The changes ensure that both the creation and editing of mirrors enforce a maximum length of 100 characters for the repository name. This is achieved through changes in the frontend and backend validation schemas.
For Reviewers
test/app.test.ts
?Readiness Checklist
Author/Contributor
npm run lint
and fix any linting issues that have been introducednpm run test
and run tests@jeffrey-luszcz
Reviewer
bug
,documentation
,enhancement
,infrastructure
,maintenance
, orbreaking