valkey-io/valkey-glide
Node: Test for protobuf internals should be part of internals tests and not client tests
Ouverte
#3 947 ouverte le 22 mai 2025
Task 🔧good first issuenode 🐢testing 🧪
Métriques du dépôt
- Stars
- (762 étoiles)
- Métriques de merge PR
- (Merge moyen 7j 22h) (94 PRs mergées en 30 j)
Description
Client tests are integration tests and not unit tests, testing of protobuf encoding should not be part of client tests, but part of the internal test, and should be moved to the right component of testing.
https://github.com/valkey-io/valkey-glide/blob/main/node/tests/GlideClient.test.ts#L95
Testing them inside the integration tests introduce importing of the glide code from specific files, in areas where the glide code should be tested as one piece, and introduces a door for errors of import export.