fix(smartcli): Allow passing argv to startParse and improve getUserArgs Deno/runtime handling; update tests and add license
This commit is contained in:
@@ -19,7 +19,8 @@ tap.test('should add an command', async (toolsArg) => {
|
||||
console.log(process.argv);
|
||||
process.argv.splice(2, 0, 'awesome');
|
||||
console.log(process.argv);
|
||||
smartCliTestObject.startParse();
|
||||
// Pass process.argv explicitly for testing (bypasses Deno.args in Deno environments)
|
||||
smartCliTestObject.startParse(process.argv);
|
||||
await done.promise;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user