Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #10033
Closed
Open
Issue created Nov 06, 2020 by Administrator@rootContributor

Add `--watchAll=false` to coverage docs

Created by: ianjmacintosh

Is your proposal related to a problem?

Yes, when I follow the instructions on https://create-react-app.dev/docs/running-tests/#coverage-reporting to run coverage reporting, I get an empty report. Others have reported this in #6888 (closed) #7838 #9322 (closed) #9876.

Describe the solution you'd like

Until this changes, I propose updating https://github.com/facebook/create-react-app/blame/master/docusaurus/docs/running-tests.md#L179 to prescribe npm test -- --coverage --watchAll=false

Describe alternatives you've considered

Ideally this behavior would be changed by the Jest team, but https://github.com/facebook/jest/issues/7331 doesn't seem to have much activity. Maybe there's another issue that's tracking it.

Assignee
Assign to
Time tracking