lib
community-002 · 968 concepts · page 6 of 10
showing 100 of 968
+yargs.mjs|title=yargs dsl tests should ignore a missing array choice with an empty default|occurrence=1
1 test · 2526 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group allows a group to be provided as the only information about an option|occurrence=1
3 tests · 2615 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .help() enables `--help` option and `help` command with `true` argument|occurrence=1, yargs.mjs|title=yargs dsl tests .help() enables given string as help option and command with custom description with two string arguments|occurrence=1, +1
4 tests · 2625 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse does not print to stdout|occurrence=1
1 test · 2632 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware should run even if no command is matched|occurrence=1
1 test · 2541 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse does not call callback if subsequently called without callback|occurrence=1
1 test · 2623 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) works if command has no options|occurrence=1
7 tests · 2578 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests "nargs" with "array" should not consume more than nargs items|occurrence=1, yargs.mjs|title=yargs dsl tests parsing --value as a value in -f=--value and --bar=--value should work with both array and nargs|occurrence=1
4 tests · 2511 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .help() enables `--help` option and `help` command without arguments|occurrence=1
5 tests · 2606 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse reinstates original exitProcess setting after invocation|occurrence=1
1 test · 2619 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests config should not raise an exception if config file is set as default argument value|occurrence=1
1 test · 2490 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command does not recommend a similar command if no similar command exists|occurrence=1
1 test · 2567 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails when a required argument is missing|occurrence=1
1 test · 2487 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should allow a valid choice|occurrence=1
2 tests · 2497 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand custom failure message should be printed for both min and max constraints|occurrence=1
1 test · 2460 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand does not fail in strict mode when no commands configured|occurrence=1
2 tests · 2484 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should allow array and requires arg to be used in conjunction|occurrence=1
1 test · 2506 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+max demanded count shouldn't interpret the second argument as a max when it is an array|occurrence=1
3 tests · 2476 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async check failure allows failed check to be caught|occurrence=1
1 test · 2498 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails when required arguments are present, but a command is missing|occurrence=1
1 test · 2471 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails because of undefined command and not because of argument after --|occurrence=1
1 test · 2474 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests implies fails if '_' populated, and implied argument not set|occurrence=1
1 test · 2468 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command should not execute command if it is preceded by another positional argument|occurrence=1
2 tests · 2499 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating already included commands|occurrence=1
2 tests · 2503 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not complete hidden commands|occurrence=1, completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not include positional arguments|occurrence=1
7 tests · 2521 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests demandCommand allows a custom min message to be provided|occurrence=1
1 test · 2445 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests config can be disabled with option shorthand|occurrence=1
1 test · 2450 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should set alias to string if option is string|occurrence=1
1 test · 2489 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests skipValidation does not skip validation if no option with skipValidation is present|occurrence=1
1 test · 2462 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails without a message if msg is null|occurrence=1
1 test · 2450 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests number should expose an options short-hand for numbers|occurrence=1
1 test · 2484 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion parser-configuration should support strip-dashed|occurrence=1, completion.mjs|title=Completion parser-configuration should support camel-case-expansion strip-aliased|occurrence=1
2 tests · 2500 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set with hyphens in options fails when an invalid argument is provided|occurrence=1
1 test · 2460 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demandCommand allows a custom min and max message to be provided|occurrence=1
2 tests · 2443 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests when exitProcess is false fail() is called with the original error message as the first parameter|occurrence=1, usage.mjs|title=usage tests when exitProcess is false fail() when check() throws error fail() is called with the original error object as the second parameter|occurrence=1
2 tests · 2464 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails with standard error message if msg is not defined|occurrence=1
3 tests · 2452 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests normalize allows key to be specified with option shorthand|occurrence=1
1 test · 2444 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should return a valid result when demanding a count of non-hyphenated values|occurrence=1
2 tests · 2452 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should not require config object for an option|occurrence=1
1 test · 2441 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests normalize can be disabled with option shorthand|occurrence=1, yargs.mjs|title=yargs dsl tests does not populate argv with placeholder keys for unset options|occurrence=1
31 tests · 2438 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests demandOption allows an array of options to be demanded|occurrence=1
1 test · 2435 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests implies fails if --no-foo's implied argument is not set|occurrence=1, validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is given when it should not|occurrence=1, +1
3 tests · 2457 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests a function can be provided, to execute when a parsing failure occurs|occurrence=1, validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is not set|occurrence=1
7 tests · 2454 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests should return valid values when check passes|occurrence=1, usage.mjs|title=usage tests should return a valid result when check condition passes|occurrence=1
4 tests · 2453 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests choices fails with one invalid value|occurrence=1, validation.mjs|title=validation tests choices fails with case-insensitive value|occurrence=1, +3
5 tests · 2465 LOC · 18 files · introduces 5 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts takes into account aliases when applying conflicts logic|occurrence=1
1 test · 2462 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demandCommand defaults to demanding 1 command|occurrence=1
1 test · 2435 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() supports string and function args (as option key and coerce function)|occurrence=1
1 test · 2498 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async check applies aliases prior to calling check|occurrence=1
1 test · 2475 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts fails if argument is supplied along with either conflicting argument|occurrence=1
1 test · 2423 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts should fail if alias of conflicting argument is provided|occurrence=1, validation.mjs|title=validation tests conflicts should fail if alias of argument with conflict is provided|occurrence=1
3 tests · 2459 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() supports an option alias|occurrence=1
6 tests · 2494 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options should return valid values when demand passes|occurrence=1
5 tests · 2430 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts allows an object to be provided defining conflicting option pairs|occurrence=1
2 tests · 2424 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async check success returns promise if check is async|occurrence=1
2 tests · 2437 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts should use appropriate translation|occurrence=1, validation.mjs|title=validation tests conflicts fails if both arguments are supplied|occurrence=1
8 tests · 2421 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests locale does not enter infinite loop when locale is invalid|occurrence=1
1 test · 2486 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async coerce coerce is applied to argument and aliases|occurrence=1
1 test · 2484 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests cjk should calculate width of cjk text correctly|occurrence=1
1 test · 2480 LOC · 18 files · introduces 1 test · 0 LOC · 0 files