Skip to content

Allow npm and yarn support for testing. #142

@infinity7998

Description

@infinity7998

Consider the scripts in the root package.json:

{
"scripts": {
    "test:auth": "cd modules/auth && yarn test",
    "test:database": "cd modules/database && yarn test",
    "test:firestore": "cd modules/firestore && yarn test",
    "test": "yarn test:auth && yarn test:database && yarn test:firestore"
  },
}

Problem

If someone does not have yarn installed and works exclusively with npm then all the scripts FAIL.

Suggested fix

Probably a better idea to either default to npm or else have the keys say : test:auth:npm and test:auth:yarn, and handle the scripts accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions