js-waku
js-waku copied to clipboard
tests: decrease redundancy in utils for different protocols
This is a change request
Problem
We have different utils being setup for different tests, specifically protocols. This, in places, is starting to get redundant and would be good to keep /tests/
folder strictly spec
files while all utils can live in /src/
instead (along with other utils)
Proposed Solutions
Abstract away different utils like https://github.com/waku-org/js-waku/blob/master/packages/tests/tests/filter/utils.ts and https://github.com/waku-org/js-waku/blob/04bd518210a709b3b01ada5be947e653912201ba/packages/tests/tests/store/utils.ts#L103 into root level utils (in /src
perhaps)