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 }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Currently helper functions like dashCase(), 'copy(), notMatched(), forEach(), etc are defined in individual modules.
Downside
the helper functions cannot be unit tested directly
the helper functions must be redefined in unit tests that require them (e.g. dashCase() is redefined here), making it hard to maintain them
Proposal
I would suggest bundling all helper functions in a helpers module and write unit tests for them.
The module could be called helpers so you can easily import required helpers in code and unit tests:
import{helpers}from'../src/helpers';
Plan
@btford — if you agree with the proposal, I am willing to invest the time to implement this and create a PR for it. Just wanted to check with you before I go ahead and implement it.
Feel free to let me know if you want to go ahead with this.
The text was updated successfully, but these errors were encountered:
Currently helper functions like
dashCase()
,'copy()
,notMatched()
,forEach()
, etc are defined in individual modules.Downside
dashCase()
is redefined here), making it hard to maintain themProposal
I would suggest bundling all helper functions in a helpers module and write unit tests for them.
The module could be called
helpers
so you can easily import required helpers in code and unit tests:Plan
@btford — if you agree with the proposal, I am willing to invest the time to implement this and create a PR for it. Just wanted to check with you before I go ahead and implement it.
Feel free to let me know if you want to go ahead with this.
The text was updated successfully, but these errors were encountered: