Skip to content

Add an option to turn off logging in testing #1214

@vladkrasn

Description

@vladkrasn

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

I see that here logger is explicitly turned off.

export interface CommanderOptionsType
  extends Omit<CommandFactoryRunOptions, 'logger'> {
  pluginsAvailable?: boolean;
}

Though it would be really nice if, at least in testing, we could set logger: false so that unneeded lines won't spawn

Describe the solution you'd like

If logger variable was hidden for a reason, maybe there's an option to pass false to it still? Or come up with another variable?

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

Would be nice to write tests with expected errors that don't clog the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions