Skip to content

Make testing a dependency, not built in #331

@ryanflorence

Description

@ryanflorence

You can't introduce testing w/o introducing religion, unfortunately. For example, I refuse to test my UI in an environment where I can't actually render it in a browser and step through problems in real browsers to fix bugs. Asking folks to eject because they don't like your religion seems a little harsh.

Seems like for testing we ought to be able to have a module on npm called react-scripts-jest, require it in the app's package.json, and then have npm test be something like:

{
  "scripts": {
    "test": "react-scripts-jest"
  }
}

That would be the default or create-react-app, but other folks can create react-scripts-karma or just roll their own inside the project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions