[extensions] Add extensions uninstall command (#6877)

This commit is contained in:
christine betts
2025-08-25 17:40:15 +00:00
committed by GitHub
parent 0bd496bd51
commit ade703944d
5 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { describe, it, expect } from 'vitest';
import { uninstallCommand } from './uninstall.js';
import yargs from 'yargs';
describe('extensions uninstall command', () => {
it('should fail if no source is provided', () => {
const validationParser = yargs([]).command(uninstallCommand).fail(false);
expect(() => validationParser.parse('uninstall')).toThrow(
'Not enough non-option arguments: got 0, need at least 1',
);
});
});