Atlas › Test

platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1

Exact test identity: mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1

Package
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm
Suite / test hierarchy
platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1
Test
platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1
Introduced at
process-argv.ts ×5 Frontier kind: Joint frontier
Covered ranges
5
Covered lines
13
Covered files
1

Co-introduced tests

2 other tests enter at the same concept.

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

lib/utils/process-argv.ts 13 covered LOC · 5 ranges

Open complete file

8 return 1;
9 }
11 function isBundledElectronApp() {
12 // process.defaultApp is either set by electron in an electron unbundled app, or undefined
14 return isElectronApp() && !(process as ElectronProcess).defaultApp;
15 }
17 function isElectronApp() {
18 // process.versions.electron is either set by electron, or undefined
20 return !!(process as ElectronProcess).versions.electron;
21 }
23 > export function hideBin(argv: string[]) {
24 return argv.slice(getProcessArgvBinIndex() + 1);
25 }
27 > export function getProcessArgvBin() {
28 return process.argv[getProcessArgvBinIndex()];
29 }
31 > interface ElectronProcess extends NodeJS.Process {
32 > defaultApp?: boolean;
33 > versions: NodeJS.ProcessVersions & {
34 > electron: string;
35 > };
36 > }