valkey-io/valkey-glide

Node: Test for protobuf internals should be part of internals tests and not client tests

Aperta

#3947 aperta il 22 mag 2025

 (1 commento) (0 reazioni) (0 assegnatari)Java (166 fork)auto 404
Task 🔧good first issuenode 🐢testing 🧪

Metriche repository

Star
 (762 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor