fix(smartcli): tighten command parsing and error handling while updating build and package configuration
This commit is contained in:
@@ -16,11 +16,7 @@ tap.test('should add an command', async (toolsArg) => {
|
||||
awesomeCommandSubject.subscribe(() => {
|
||||
done.resolve();
|
||||
});
|
||||
console.log(process.argv);
|
||||
process.argv.splice(2, 0, 'awesome');
|
||||
console.log(process.argv);
|
||||
// Pass process.argv explicitly for testing (bypasses Deno.args in Deno environments)
|
||||
smartCliTestObject.startParse(process.argv);
|
||||
smartCliTestObject.startParse(['node', 'test.js', 'awesome']);
|
||||
await done.promise;
|
||||
});
|
||||
|
||||
@@ -40,4 +36,4 @@ tap.test('should accept a command', async () => {
|
||||
expect(hasExecuted).toBeTrue();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
|
||||
Reference in New Issue
Block a user