is-promise.ts ×1
Frontier kind: Joint frontier
unlabeled · c_92838e88ce58
61 tests · 9 LOC · 1 file · introduces 3 tests · 1 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 1 lines · 1 files
Tests
3 tests
Contains — complete concept membership
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
is-promise.ts ×1 — Focused concept
Introduced files:
Introduced tests:
command.mjs|title=Command async builder allows positionals to be configured asynchronously|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:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
middleware.mjs|title=middleware applyBeforeValidation=true resolves async middleware, before applying validation|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:
yargs.mjs|title=yargs dsl tests async argv caches deeply nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async calls the command handler when all middleware promises resolve|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv caches nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns promise that can be caught if rejected|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async returns promise that can be caught, when fail(false)|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
middleware.mjs|title=middleware async check failure allows error to be caught before calling command and middleware|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse caches deeply nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async builder allows deeply nested command to be defined in async builder|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async builder allows command to be defined in async builder|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async check failure allows error to be caught before calling command|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns deeply nested promise that resolves argv on success|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse caches nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse calls parse callback once deeply nested promise has resolved|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async check success allows async check to be used with command and middleware|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns promise that resolves argv on success|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async returns promise that resolves arguments once handler succeeds|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
middleware.mjs|title=middleware applyBeforeValidation=true does not cause an unexpected error when async middleware and strict are both used|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:
yargs.mjs|title=yargs dsl tests async parse calls parse callback once async handler has resolved|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async it allows middleware rejection to be caught|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:
middleware.mjs|title=middleware async check success allows async check to be used with command|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async coerce allows two commands to register different coerce methods|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests getHelp should allow help to be output for failed command|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests usage for default command multiple should contain the expected output for getHelp when called from within handler|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async calls an async middleware only once for nested subcommands|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command allows async exception in handler to be caught|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async fails when the promise returned by the command handler rejects|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.ts ×2 — Ancestor (broader)
Introduced files:
middleware.mjs|title=middleware async it awaits middleware before awaiting handler, when applyBeforeValidation is "false"|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.ts ×3 — Ancestor (broader)
Introduced files:
yargs.mjs|title=yargs dsl tests getHelp should allow help to be output for successful command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
middleware.mjs|title=middleware async $0 applies middleware before performing validation, with explicit $0|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
usage.mjs|title=usage tests usage for default command default only should contain the expected output for getHelp when called from within handler|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests async builder positional should contain the expected output for --help|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware applyBeforeValidation=true still throws error when async middleware is used|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.ts ×2 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.mjs|title=Command async builder does not print to stdout when parse callback is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests async builder help is displayed before exit is called with async default command|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
middleware.mjs|title=middleware async coerce allows error to be caught|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async $0 applies middleware before performing validation, with implied $0|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async coerce applies coerce before validation|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
middleware.mjs|title=middleware async check failure allows failed check to be caught|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async check applies aliases prior to calling check|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async check success returns promise if check is async|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async coerce coerce is applied to argument and aliases|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async check success returns promise if check and middleware is async|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests parseAsync returns promise when parse is asynchronous|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware async $0 applies global middleware when no commands are provided, with implied $0|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
completion.mjs|title=Completion completion() if a promise is returned, completions can be asynchronous|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
usage.ts ×1 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×2 — Ancestor (broader)
Introduced files:
completion.mjs|title=Completion async completion does not apply validation if async completion command provided|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.ts ×1 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×2 — Ancestor (broader)
Introduced files:
completion.ts ×3 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×3 — Ancestor (broader)
Introduced files:
is-promise.ts ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
is-promise.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
3 tests introduced at this concept.
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.
lib/utils/is-promise.ts 1 introduced LOC · 1 range
Open complete file
5
!! maybePromise &&
6
!! ( maybePromise as Promise < T >). then &&
7
>
typeof ( maybePromise as Promise < T >). then === 'function'
is-promise.ts
8
);
9
}