Skip to content

Refact links controllers and add tests cases#18

Merged
itbruno merged 1 commit intorelease/0.5.0from
feat/links-controllers
Jan 13, 2026
Merged

Refact links controllers and add tests cases#18
itbruno merged 1 commit intorelease/0.5.0from
feat/links-controllers

Conversation

@itbruno
Copy link
Owner

@itbruno itbruno commented Jan 13, 2026

Description

  • Refact all links controllers

@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 98.57% 138 / 140
🔵 Statements 98.71% 154 / 156
🔵 Functions 100% 67 / 67
🔵 Branches 81.91% 77 / 94
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/use-cases/links/delete-link.ts 100% 100% 100% 100%
src/use-cases/links/get-link.ts 100% 100% 100% 100%
src/use-cases/links/update-link.ts 100% 58.33% 100% 100%
Generated in workflow #80 for commit da2651c by the Vitest Coverage Report Action

@itbruno itbruno self-assigned this Jan 13, 2026
@itbruno itbruno added the refact label Jan 13, 2026
@itbruno itbruno merged commit c40f9b9 into release/0.5.0 Jan 13, 2026
2 checks passed
@itbruno itbruno deleted the feat/links-controllers branch January 13, 2026 01:58
itbruno added a commit that referenced this pull request Jan 13, 2026
* chore: upgrade version to 0.5.0

* feat: create factories for all use cases (#14)

* User authenticate controller (#15)

* chore: install zod package

* feat: update error handling to catch zod error instances

* feat: create env file with zod validation

* feat: update prisma seed

* feat: update env var from prisma instance

* feat: add and update user authentication controller and route

* feat: remove unused imports

* chore: remove uneeeded auth controller

* feat: update seed and password min length

* chore: add supertest package to E2E tests

* test: add authenticate test

* chore: configure environment for integration test

* chore: add prisma generate for env test

* chore: update the e2e action

* feat: remove uneeded migrate execution

* chore: update github action to e2e test

* shore: reorganize actions

* chore: update actions

* chore: update actions

* chore: remove coverage from e2e

* chore: update actions

* feat: remove uneeded custom env for vitest

* Users controllers (#16)

* feat: add create user controller

* feat: fix returning from user create controller and add test

* feat: update auth test to add the create controller

* feat: update use case variable name from create user controller

* feat: add update user controller and update auth middleware

* chore: rename test case

* feat: add controller to delete user; update create and update controllers;

* feat: add test to update user and update another tests

* chore: just update test emails to keep most readable

* feat: Add controller to get profile user info

* chore: update vitest e2e test config to run at single thread

* feat: remove unused imports

* chore: update vite config to remove fileParallelism

* feat: refact pages controller (#17)

* feat: refact pages controller

* feat: update tests cases

* feat: add new use case and cnotroller to get links from specific page

* feat: refact links controllers and create tests cases (#18)

* chore: update readme with new specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant