Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

feat(helpers): create helpers module #211

Description

@jvandemo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions