Currently, the reporters field in EvaliphyConfig accepts (string | any)[] | string, which is too permissive and lacks IDE discoverability. To align with "Strict Typing" principles, we need to restrict this to a set of supported reporter types. This will prevent configuration errors and provide a better developer experience through auto-completion.
Task: Implement a foundation which will be later evolved to excel/csv and other reporters.
The foundation should support:
- Console Reporter: Should be active by default.
- HTML Reporter: Should be easily toggled.
- Extensibility: The structure must allow for adding csv and excel formats in the near future without breaking changes.
Acceptance Criteria:
Note: Please test your fix before raising PR. Don't blindly accept what LLM generates.
Describe the solution you'd like
export type BuiltInReporter = 'console' | 'html';
Describe alternatives you've considered
No response
Additional context
No response
Currently, the reporters field in
EvaliphyConfigaccepts (string | any)[] | string, which is too permissive and lacks IDE discoverability. To align with "Strict Typing" principles, we need to restrict this to a set of supported reporter types. This will prevent configuration errors and provide a better developer experience through auto-completion.Task: Implement a foundation which will be later evolved to excel/csv and other reporters.
The foundation should support:
Acceptance Criteria:
Note: Please test your fix before raising PR. Don't blindly accept what LLM generates.
Describe the solution you'd like
export type BuiltInReporter = 'console' | 'html';Describe alternatives you've considered
No response
Additional context
No response