refactor: service module to TS + ESM (v2)#1166
Conversation
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
- Coverage 83.84% 83.39% -0.45%
==========================================
Files 68 70 +2
Lines 2946 3006 +60
Branches 380 501 +121
==========================================
+ Hits 2470 2507 +37
+ Misses 409 396 -13
- Partials 67 103 +36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…e-ts-refactor-redone
kriswest
left a comment
There was a problem hiding this comment.
Looks pretty good, a few small niggles to resolve
Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
…lada/git-proxy into service-ts-refactor-redone
fix: return on /create-user fix: cast res,data to Boolean in ldaHelper
|
@kriswest Left a comment regarding the |
|
As for the reduced test coverage, this is mostly due to all the extra conditionals for type checking I added (AKA "partial" coverage). I'd like to wrap up the Vitest conversion PR to see the new coverage, then assess whether we need to improve our tests once the full TS refactor is over. |
|
@jescalada Should we delete test/fixtures/test-package/package-lock.json |
|
Update typing for |
|
If this is rebased and the above is addressed, plus a squash for good measure, I think we can merge |
|
@06kellyjac Unfortunately rebasing proved to be a pain - I ended up merging from main instead... @kriswest's comments are solved now. It seems that the |
|
mergeable - don't forget to squash! |
resolves #1062
resolves #1245
Note that the changes in thepackage-lock.jsonare due to adding thenodemailertypes.nodemailerdoesn't seem to be used outside of the/src/service/emailSender.tsfile which is currently unused, however it will likely be used eventually for solving #1121 (so we might as well keep it unless there's a better email library).Removed
nodemailerandnodemailer/typesto reduce package bloat and prevent incompatible license problems. We can always use another email library to implement #1121 later on.