Reason/Context
The test command currently contains duplicated logic for:
- argument validation
--waitFor parsing
- repeated error messages
This makes the command harder to maintain and extend.
Description
I would like to refactor this by extracting reusable helper functions for validation and wait time parsing, while keeping the existing behavior unchanged.
Planned changes:
- extract argument validation into helper function
- extract waitFor parsing into reusable helper
- centralize duplicated error strings into constants
- simplify the command flow and improve readability
Implementation ideas
No response
Reason/Context
The
testcommand currently contains duplicated logic for:--waitForparsingThis makes the command harder to maintain and extend.
Description
I would like to refactor this by extracting reusable helper functions for validation and wait time parsing, while keeping the existing behavior unchanged.
Planned changes:
Implementation ideas
No response