[IMPORTANT] Tests uitgesloten van TypeScript type-checking #5
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eddy/weegschaal-app#5
Loading…
Reference in a new issue
No description provided.
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?
Probleem
tsconfig.json:7bevat:Dit voorkomt dat
tsc --noEmitde testbestanden type-checkt. Als een veld in hetMeasurementtype wordt hernoemd, zullen tests met oude veldnamen niet als compileerfout worden gemarkeerd — ze falen pas tijdens runtime met verwarrende errors.Oplossing
"tests"uit deexcludearray intsconfig.jsonnpx tsc --noEmiten fix eventuele typefouten in de tests"typecheck": "tsc --noEmit"toe aanpackage.jsonscripts