Skip to content

Bug report: the "Cli/shows full help when specified -h with a number" test is failing when you have helpMode configured #4185

@waldekmastykarz

Description

@waldekmastykarz

Description

When you configure helpMode, the Cli/shows full help when specified -h with a number test is failing

Steps to reproduce

  • get the latest dev code
  • m365 cli config set -k helpMode -v options
  • npm run test:test

Expected results

All tests pass

Actual results

Error:

  1) Cli
       shows full help when specified -h with a number:

      AssertionError [ERR_ASSERTION]: Examples section not found
      + expected - actual

      -false
      +true
      
      at /Users/CLIppy/cli-microsoft365/src/cli/Cli.spec.ts:423:11

Diagnostics

No response

CLI for Microsoft 365 version

Latest from main

nodejs version

v16

Operating system (environment)

macOS

Shell

zsh

cli doctor

No response

Additional Info

Resetting config using m365 cli config reset -k helpMode makes the test to pass but ideally tests shouldn't be affected by local configuration

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions