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
Description
When you configure helpMode, the Cli/shows full help when specified -h with a number test is failing
Steps to reproduce
m365 cli config set -k helpMode -v optionsnpm run test:testExpected results
All tests pass
Actual results
Error:
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 helpModemakes the test to pass but ideally tests shouldn't be affected by local configuration