MCPcopy Index your code
hub / github.com/adobe/react-spectrum / parseArgs

Function parseArgs

scripts/testDocs.js:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const glob = require('glob');
6
7function parseArgs() {
8 const args = process.argv.slice(2);
9 const browser = args[0] || 'chromium';
10 if (!['chromium', 'firefox', 'webkit'].includes(browser)) {
11 console.error(
12 'Invalid browser specified. Must be "chromium", "firefox", or "webkit". Using "chromium" as default.'
13 );
14 return 'chromium';
15 }
16 return browser;
17}
18
19async function startServer() {
20 return new Promise((resolve, reject) => {

Callers 8

createFeed.mjsFile · 0.70
mainFunction · 0.70
buildBranchAPI.jsFile · 0.70
compareAPIs.jsFile · 0.70
reportExports.jsFile · 0.70
writeTestingCSVFunction · 0.70
testDocsFunction · 0.70

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected