You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: Whenever we test if schemas encode and decode binary correctly, let's automatically test if both the compiled and non-compiled writers work correctly. #2658
(if supported) dynamically generated functions that are specialized per schema to write into a buffer
(fallback) interpreting schemas and dynamically writing to a buffer
The implementation is chosen based on whether compiledIO.ts#EVAL_ALLOWED_IN_ENV is true or not.
Possible solution
We could do this via some sort of expect().toEncodeTo() and expect().toDecodeTo() helpers, or via just helpers that run the calculation twice, make sure the output is the same, and return one of them.
expectEncoded(schema,123).toMatchInlineSnapshot(...)// writes twice, compares, and returns one of the results
Activity
pullfrog commentedon Jun 29, 2026