Convert ServiceChain plugin to NestJS module#2019
Convert ServiceChain plugin to NestJS module#2019StephaneTrebel wants to merge 3 commits intomainfrom
Conversation
|
🤖 Hey ! The security scan report for the current pull request is available here. |
d1bbe44 to
23cc295
Compare
23cc295 to
3f689e8
Compare
fb683c2 to
4e7ad49
Compare
apps/server-nestjs/src/cpin-module/infrastructure/auth/admin-permission.guard.spec.ts
Fixed
Show fixed
Hide fixed
1f719cd to
8f6bfdc
Compare
|
🤖 Hey ! A preview of the application is available at : https://console-pr-2019.dso.cpin-hp.numerique-interieur.fr Please be patient, deployment may take a few minutes. |
8f6bfdc to
8d74ca8
Compare
shikanime
left a comment
There was a problem hiding this comment.
On utilise NestJS, autant reellement utiliser le framework a fond via @nestjs/testing avec un typage fort jusqu'au mocks. J'ai eux pas mal d'occasion ou les mocks n'etait plus en sync avec les implementations reel qui ont fausse les tests
apps/server-nestjs/src/cpin-module/infrastructure/auth/auth.service.spec.ts
Outdated
Show resolved
Hide resolved
apps/server-nestjs/src/cpin-module/service-chain/service-chain.controller.spec.ts
Outdated
Show resolved
Hide resolved
apps/server-nestjs/src/cpin-module/service-chain/service-chain.service.spec.ts
Outdated
Show resolved
Hide resolved
apps/server-nestjs/src/cpin-module/service-chain/service-chain.service.ts
Outdated
Show resolved
Hide resolved
2b210cc to
89f1dba
Compare
89f1dba to
9d3eb71
Compare
9d3eb71 to
bd3691a
Compare
|
🤖 Hey ! The security scan report for the current pull request is available here. |
bd3691a to
f745221
Compare
|
🤖 Hey ! A preview of the application is available at : https://console-pr-2019.dso.cpin-hp.numerique-interieur.fr Please be patient, deployment may take a few minutes. |
|
🤖 Hey ! The security scan report for the current pull request is available here. |
|
🤖 Hey ! The security scan report for the current pull request is available here. |
| const openCdsDisabledMessage = 'OpenCDS is disabled, please set OPENCDS_URL in your relevant .env file. See .env-example' | ||
|
|
||
| @Injectable() | ||
| export class OpenCdsClientService { |
There was a problem hiding this comment.
Idealement comme on fait table rase, on devrait drop Axios comme dependence vers juste fetch natif.
|
|
||
| const uuid = '550e8400-e29b-41d4-a716-446655440000' | ||
|
|
||
| const mockServiceChain = { |
There was a problem hiding this comment.
Ajout du typage pour la detection de refacto, peut-etre une fonction makexxx comme dans les autres tests, car c'est une base spread dans les tests.
There was a problem hiding this comment.
Oui une factory serait vachement mieux, bien vu !

Issues liées
Issues numéro: #1983