usage.ts ×1
Frontier kind: Code frontier
unlabeled · c_43efe7615bbc
147 tests · 2146 LOC · 18 files · introduces 0 tests · 1 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
- Code
- 1 range1 lines · 1 files
- Tests
- 0 tests
Contains — complete concept membership
- All code (extent)
- 387 ranges2146 lines · 18 files · Browse complete extent
- All tests (intent)
- 147 testsBrowse complete intent
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
- Focus concept
- Ancestors (broader)
- Descendants (narrower)
- Introduced files
- Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
- usage.ts ×1 — Focused concept Introduced files:
- yargs.mjs|title=yargs dsl tests positional allows an implied argument to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows a choices array to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands preserves top-level config when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows a conflicting argument to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests with strict() option set should wrap whitespace in quotes if provided as an unknown argument|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default command should display help output for nested default command on failure|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help message caching should not display a cached help message for the next parsing|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command should kick along [demand] configuration to commands|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints strict does not fire command if validation fails|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command async displays error and appropriate help message when handler fails|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand fails in strict mode with extra positionals|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictOptions allows strict options to be turned off|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests when exitProcess is false fail() is invoked with yargs instance as third argument|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints validation applies demandOption globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command variadic fails if required arguments are missing|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command missing positional arguments fails if a required argument is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default command should display options (with descriptions) on failed default command|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help message caching should display proper usage when an async handler fails|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand interprets max relative to command|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand interprets min relative to command|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async fails when the promise returned by the middleware rejects|occurrence=1 — Ancestor (broader) Introduced tests:
-
validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1, validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1
- usage.mjs|title=usage tests usage for default command default only should contain the expected output for showHelp, when exception occurs|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints types applies choices type globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints validation applies conflicts logic for command by default|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on globally|occurrence=1, usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on command and globally (priority given to command message)|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on command and globally (priority given to command message)|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on globally|occurrence=1
- usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on to command|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.mjs|title=Command async fails when the promise returned by the command handler rejects|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints coerce should bubble errors thrown by coerce function inside commands|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands resets errors when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests with strict() option set should fail given an option argument without a corresponding description|occurrence=1, usage.mjs|title=usage tests with strict() option set should fail given multiple option arguments without corresponding descriptions|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests with strict() option set should fail given an option argument without a corresponding description|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests with strict() option set should fail given multiple option arguments without corresponding descriptions|occurrence=1
- validation.mjs|title=validation tests demand fails in strict mode with extra positionals for default command|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not invoke command handler if output is populated|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests wrap should wrap argument descriptions onto multiple lines|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests demand option with boolean flag with demand option should report missing required arguments|occurrence=1, usage.mjs|title=usage tests demand option with boolean flag with required option should report missing required arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests demand option with boolean flag with demand option should report missing required arguments|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests demand option with boolean flag with required option should report missing required arguments|occurrence=1
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() missing argument message given if one command, but an argument not on the list is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=2 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests choices fails when demandOption is true and choice is not provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests check fails if error is thrown in check callback|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows completion command to be hidden|occurrence=1 — Ancestor (broader) Introduced tests:
- levenshtein.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
-
usage.mjs|title=usage tests commands should not show hidden commands|occurrence=1, usage.mjs|title=usage tests commands should output a list of available commands|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests commands should not show hidden commands|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests commands should output a list of available commands|occurrence=1
-
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests command recommends a similar command if no command handler is found|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests command recommends the longest match first|occurrence=1
- usage.mjs|title=usage tests should print a single line when failing and default is set for an alias|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests .coerce() allows an error from positional arg to be handled by fail() handler|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a custom failure message when not enough non-hyphenated arguments are found after a demand count|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a failure message when not enough non-hyphenated arguments are found after a demand count|occurrence=1 — Ancestor (broader) Introduced tests:
- max demanded count allows a customer error message to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests required arguments with requiresArg method should show a failure message if a required option is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- max demanded count outputs an error if '_' count is above max|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests required arguments with options object should show a failure message if a required option is missing|occurrence=1, usage.mjs|title=usage tests required arguments with options object should show a failure message if more than one required option is missing|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests required arguments with options object should show a failure message if a required option is missing|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests required arguments with options object should show a failure message if more than one required option is missing|occurrence=1
- max demanded count outputs an error if '_' count is below min|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests reset does not invoke parse with an error if reset has been called and option is not global|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options should not show a custom message if msg is null|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() using .require() should show an error along with the missing arguments on demand fail|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests when exitProcess is false fail() when command() throws error fail() is called with the original error object as the second parameter|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() should show an error along with the missing arguments on demand fail|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests should display a failed message when check condition fails|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests should display example on fail|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests wrap should wrap the usage string|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue replaces $0 in epilog string|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue should display an epilog message at the end of the usage instructions|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue supports multiple epilogs|occurrence=1
- usage.mjs|title=usage tests should display missing arguments when check fails with a thrown exception|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse resets error state between calls to parse|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests wrap should wrap the left-hand-column if it takes up more than 50%25 of the screen|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests showHelpOnFail should display custom failure message, if string is provided as first argument|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests "nargs" with "array" should raise error if not enough values follow nargs key|occurrence=1 — Ancestor (broader) Introduced tests:
-
yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed argv as second argument|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed error as first argument|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed argv as second argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed error as first argument|occurrence=1
- yargs.mjs|title=yargs dsl tests showHelpOnFail calling with no arguments should default to displaying help|occurrence=1 — Ancestor (broader) Introduced tests:
-
validation.mjs|title=validation tests strictOptions fails if option is unknown|occurrence=1, validation.mjs|title=validation tests strictOptions applies strict options when commands are invoked|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictOptions applies strict options when commands are invoked|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictOptions fails if option is unknown|occurrence=1
- yargs.mjs|title=yargs dsl tests exitProcess should set exit process to true, if no argument provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type array is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type number is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type string is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests accepts an object for implies|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type boolean is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests when exitProcess is false when check fails with a thrown exception should display missing arguments once|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandCommand should return a custom failure message when too many non-hyphenated arguments are found after a demand count|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests showHelpOnFail should display user supplied message|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand fails in strict mode with invalid command|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests strict mode does not fail for hidden options but does for unknown arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests config outputs an error returned by the parsing function|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests skipValidation allows having an option that skips validation but not skipping validation if that option is not used|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests config outputs an error if thrown by the parsing function|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests required arguments still requires argument if 'type' hints are given|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests implies allows key to be specified with option shorthand|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandOption allows demandOption in option shorthand|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictCommands fails with error if command is unknown|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests conflicts allows key to be specified with option shorthand|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests demand fails when a required argument is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand custom failure message should be printed for both min and max constraints|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests demand fails when required arguments are present, but a command is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand fails because of undefined command and not because of argument after --|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests implies fails if '_' populated, and implied argument not set|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandCommand allows a custom min message to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests skipValidation does not skip validation if no option with skipValidation is present|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand fails without a message if msg is null|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests with strict() option set with hyphens in options fails when an invalid argument is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandCommand allows a custom min and max message to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
-
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 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests when exitProcess is false fail() is called with the original error message as the first parameter|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/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
- validation.mjs|title=validation tests demand fails with standard error message if msg is not defined|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandOption allows an array of options to be demanded|occurrence=1 — Ancestor (broader) Introduced tests:
-
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 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests implies fails if --no-foo's implied argument is not set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests implies fails if a key is set, along with a key that it implies should not be set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is given when it should not|occurrence=1
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
-
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 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is not set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/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 choices fails with one invalid value|occurrence=1, validation.mjs|title=validation tests choices fails with case-insensitive value|occurrence=1, +3 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices fails with case-insensitive value|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices fails with multiple invalid arguments|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices fails with multiple invalid values for same argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices fails with one invalid value|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices fails with one valid and one invalid value|occurrence=1
- validation.mjs|title=validation tests conflicts takes into account aliases when applying conflicts logic|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demandCommand defaults to demanding 1 command|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests conflicts fails if argument is supplied along with either conflicting argument|occurrence=1 — Ancestor (broader) Introduced tests:
-
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 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests conflicts should fail if alias of argument with conflict is provided|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests conflicts should fail if alias of conflicting argument is provided|occurrence=1
- validation.mjs|title=validation tests conflicts allows an object to be provided defining conflicting option pairs|occurrence=1 — Ancestor (broader) Introduced tests:
-
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 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests conflicts fails if both arguments are supplied|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests conflicts should use appropriate translation|occurrence=1
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests .coerce() allows an error to be handled by fail() handler|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- validation.ts ×3 — Ancestor (broader) Introduced files:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
-
yargs.mjs|title=yargs dsl tests exitProcess when exitProcess is set to false and a failure occurs should throw an exception|occurrence=1, yargs.mjs|title=yargs dsl tests exitProcess when exitProcess is set to false and a failure occurs should output the errors to stderr once|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests exitProcess when exitProcess is set to false and a failure occurs should output the errors to stderr once|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests exitProcess when exitProcess is set to false and a failure occurs should throw an exception|occurrence=1
- validation.ts ×2 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×3 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests config should raise an appropriate error if JSON file is not found|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×2 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×5 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Descendant (narrower) Introduced files:
- middleware.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×5 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×5 — Descendant (narrower) Introduced files:
- usage.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×9 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — Descendant (narrower) Introduced files:
- command.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×35 — Descendant (narrower) Introduced files:
-
yargs-factory.ts ×124 — Descendant (narrower)
Introduced files:
- lib/command.ts
- lib/completion-templates.ts
- lib/completion.ts
- lib/middleware.ts
- lib/usage.ts
- lib/utils/levenshtein.ts
- lib/utils/maybe-async-result.ts
- lib/utils/set-blocking.ts
- lib/validation.ts
- lib/yargs-factory.ts
- argsert.ts ×1 — Descendant (narrower) Introduced files: Introduced tests:
-
argsert.mjs|title=Argsert allows for any type if * is provided|occurrence=1, argsert.mjs|title=Argsert should ignore trailing undefined values|occurrence=1 — Descendant (narrower)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert allows for any type if * is provided|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert should ignore trailing undefined values|occurrence=1
- argsert.ts ×1 — Descendant (narrower) Introduced files:
- argsert.ts ×1 — Descendant (narrower) Introduced files:
- argsert.ts ×1 — Descendant (narrower) Introduced files:
- argsert.ts ×1 — Descendant (narrower) Introduced files:
- argsert.ts ×1 — Descendant (narrower) Introduced files: Introduced tests:
- argsert.ts ×2 — Descendant (narrower) Introduced files:
- argsert.ts ×3 — Descendant (narrower) Introduced files:
- parse-command.ts ×1 — Descendant (narrower) Introduced files:
- parse-command.ts ×1 — Descendant (narrower) Introduced files:
- parse-command.ts ×3 — Descendant (narrower) Introduced files:
- process-argv.ts ×1 — Descendant (narrower) Introduced files:
- process-argv.ts ×3 — Descendant (narrower) Introduced files:
- argsert.ts ×1 — Descendant (narrower) Introduced files:
-
apply-extends.ts ×4 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/helpers.mjs|title=helpers Parser exposes functional argument parser|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/parser.mjs|title=should expose yargs-parser as Parser|occurrence=1
- argsert.ts ×4 — Descendant (narrower) Introduced files:
- obj-filter.ts ×2 — Descendant (narrower) Introduced files:
- argsert.ts ×3 — Descendant (narrower) Introduced files:
- common-types.ts ×4 — Descendant (narrower) Introduced files:
-
process-argv.ts ×5 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __ behaves like sprintf|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses second string if plural|occurrence=1
-
is-promise.ts ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` if passed object has no `then` property|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` if some falsy value is passed|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` on non promise value|occurrence=1
- parse-command.ts ×1 — Descendant (narrower) Introduced files: Introduced tests:
- parse-command.ts ×2 — Descendant (narrower) Introduced files:
- yerror.ts ×2 — Descendant (narrower) Introduced files:
- is-promise.ts ×1 — Descendant (narrower) Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 1 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.