Skip to content

Allow jest verbose configuration option #7528

Description

@hatched

Is your proposal related to a problem?

When executing tests that may output a number of log lines irrelevant to the test run it would be nice to hide those by using Jest's built in verbose option.

Describe the solution you'd like

Add verbose to the whitelist for jest options in createJestConfig.js. After making this modification locally I haven't run into any negative side effects.

Describe alternatives you've considered

  • Providing a custom logging interface seemed a bit excessive when this functionality is built into the test tool but is gated by a whitelist.

  • Removing the whitelist entirely and allow freeform Jest configuration.

Additional context

The suggestion to eject when trying to use a non-whitelisted jest configuration option seems a bit heavy handed vs a link to create an issue about adding a new option or an explanation as to why there is a whitelist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions