mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-12 06:10:42 -07:00
Refactor: Migrate CLI appEvents to Core coreEvents (#15737)
This commit is contained in:
@@ -20,8 +20,8 @@ import {
|
||||
type GeminiClient,
|
||||
SlashCommandStatus,
|
||||
makeFakeConfig,
|
||||
coreEvents,
|
||||
} from '@google/gemini-cli-core';
|
||||
import { appEvents } from '../../utils/events.js';
|
||||
|
||||
const {
|
||||
logSlashCommand,
|
||||
@@ -1044,7 +1044,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
// We should not see a change until we fire an event.
|
||||
await waitFor(() => expect(result.current.slashCommands).toEqual([]));
|
||||
act(() => {
|
||||
appEvents.emit('extensionsStarting');
|
||||
coreEvents.emit('extensionsStarting');
|
||||
});
|
||||
await waitFor(() =>
|
||||
expect(result.current.slashCommands).toEqual([newCommand]),
|
||||
|
||||
Reference in New Issue
Block a user