Don't accept input until slash commands are loaded (#11162)

This commit is contained in:
Tommaso Sciortino
2025-10-14 18:15:57 -07:00
committed by GitHub
parent 2cce76a560
commit ed1e5b59ec
6 changed files with 23 additions and 16 deletions
@@ -342,6 +342,8 @@ describe('useSlashCommandProcessor', () => {
setMockIsProcessing,
);
await waitFor(() => expect(result.current.slashCommands).toBeDefined());
await act(async () => {
await result.current.handleSlashCommand('/fail');
});