Create-react-app: Add "debug-test" script by default

Created on 8 Jan 2018  路  3Comments  路  Source: facebook/create-react-app

It should do something like https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#debugging-tests-in-chrome, but without all those CLI arguments.

stale enhancement

Most helpful comment

Yeah. Or maybe just supporting --debug flag in test command is enough.

All 3 comments

I think I can take on this one.

Just to be clear, this is meant to achieve a state where apps created with create-react-app are able to just declare the following in their package.json file (which should also come pre-defined in the template so users really don't need to do anything for newly created apps):

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

And that task will perform the exact same thing as the one in the README to which you linked. So all this args are important to be passed, but only internally so users don't need to setup this script line anymore. Is this correct?

Yeah. Or maybe just supporting --debug flag in test command is enough.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiaoxiangmoe picture xiaoxiangmoe  路  89Comments

amuehl picture amuehl  路  79Comments

Timer picture Timer  路  144Comments

daviseford picture daviseford  路  108Comments

akctba picture akctba  路  80Comments