-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Add unit tests for error edge cases and boundary conditions in the CommandPalette component.
Current State
We have 45 passing tests, but we should add more edge case coverage.
What to test
- Empty command list handling
- Null/undefined command properties
- Very long command labels
- Special characters in search
- Rapid keyboard input
- Commands with missing action property
File to modify
src/components/CommandPalette.test.tsx
Example test structure
it('handles commands with missing action gracefully', () => {
const commands = [{ id: '1', label: 'Test', action: undefined }];
render(<CommandPalette />, { commands });
// Assert expected behavior
});Resources
- See existing tests: src/components/CommandPalette.test.tsx
- Testing library docs: https://testing-library.com/
Labels
good first issue, help wanted
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed