fix(cli): enable typechecking for ui/commands tests (#11413)

This commit is contained in:
Sandy Tao
2025-10-17 14:20:49 -07:00
committed by GitHub
parent 08e87a59d5
commit 21163a1636
7 changed files with 29 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ describe('terminalSetupCommand', () => {
message: 'Terminal configured successfully',
});
const result = await terminalSetupCommand.action({} as CommandContext, '');
const result = await terminalSetupCommand.action!({} as CommandContext, '');
expect(result).toEqual({
type: 'message',
@@ -44,7 +44,7 @@ describe('terminalSetupCommand', () => {
requiresRestart: true,
});
const result = await terminalSetupCommand.action({} as CommandContext, '');
const result = await terminalSetupCommand.action!({} as CommandContext, '');
expect(result).toEqual({
type: 'message',
@@ -60,7 +60,7 @@ describe('terminalSetupCommand', () => {
message: 'Failed to detect terminal',
});
const result = await terminalSetupCommand.action({} as CommandContext, '');
const result = await terminalSetupCommand.action!({} as CommandContext, '');
expect(result).toEqual({
type: 'message',
@@ -74,7 +74,7 @@ describe('terminalSetupCommand', () => {
new Error('Unexpected error'),
);
const result = await terminalSetupCommand.action({} as CommandContext, '');
const result = await terminalSetupCommand.action!({} as CommandContext, '');
expect(result).toEqual({
type: 'message',