[PRC-001] Suggestion: tsconfig ignoreDeprecations + MSW handler product-types #58
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SUGGESTIONS del verify-report-v2:
(a) Agregar
'ignoreDeprecations': '6.0'asrc/web/tsconfig.jsonpara silenciar el warning TS5101 sobrebaseUrl.(b) Agregar MSW handler para
GET /api/v1/admin/product-typesen los tests del frontend de chargeableChars (hoy hay warnings de unhandled request, los tests pasan igual).Resuelto por PR #60 (commit
3e7c4bf).Parte (a):
src/web/tsconfig.jsonahora tiene"ignoreDeprecations": "6.0"→ silencia el warning TS5101 delbaseUrldeprecated en TypeScript 6.x.npx tsc --noEmitahora sale limpio (0 errors, 0 warnings).Parte (b): MSW handler para
GET /api/v1/admin/product-typesNO es necesario — los tests deChargeableCharsTableyChargeableCharFormDialogmockeanProductTypeSelectdirectamente víavi.mock(...), evitando el fetch. Los tests deCopyToAllProductTypesDialogya tienen su handler propio. No hay warnings residuales.Verify: 510/510 vitest green, tsc clean.