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
  • #9019
Closed
Open
Issue created May 16, 2020 by Administrator@rootContributor

Reporter options for Jest

Created by: jdelucaa

Is your proposal related to a problem?

CRA only supports overriding a few Jest options and reporters is not one of them. I know that I can add reporters via cli --reporters=my-reporter, the problem is that I would like to pass in some options to that, but reporter options are not available via cli (https://jestjs.io/docs/en/next/cli#--reporters).

I really don't want to eject my CRA setup, so i wish it was more flexible when it comes to Jest configurations.

Describe the solution you'd like

This is what I'd like to be able to do:

"reporters": [
  "default",
  ["./node_modules/jest-cucumber/dist/src/reporter", {
    "formatter": "json",
    "path": "./reports/test-report.json"
  }]
],

Describe alternatives you've considered

I could use something like craco, but it would be even nicer to have it (and other Jest configs) out of the box in CRA.

Additional context

https://github.com/facebook/create-react-app/issues/2474 https://github.com/facebook/create-react-app/issues/6224

Assignee
Assign to
Time tracking