The extensive stubbing in the @helia/verified-fetch tests have some baked-in assumptions about how the codecs work which are not easy to unpick.
It's quick to test using the actual codecs if the block data is already present so remove the stubs and use a network-less Helia node to make the tests more reliable.
Notes & open questions
Change checklist
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[x] I have added tests that prove my fix is effective or that my feature works
The extensive stubbing in the
@helia/verified-fetch
tests have some baked-in assumptions about how the codecs work which are not easy to unpick.It's quick to test using the actual codecs if the block data is already present so remove the stubs and use a network-less Helia node to make the tests more reliable.
Notes & open questions
Change checklist