js-waku icon indicating copy to clipboard operation
js-waku copied to clipboard

tests: decrease redundancy in utils for different protocols

Open danisharora099 opened this issue 7 months ago • 1 comments

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)

Notes

danisharora099 avatar Jul 25 '24 09:07 danisharora099