Skip to content

Conversation

@pushkarm029
Copy link
Contributor

  • Updated EditorComponent tests to include mock CompilerService for compile and test methods.
  • Added validation for empty code in compile and test methods.
  • Introduced OutputComponent with HTML and CSS for displaying output messages with different types (error, success, info).
  • Created tests for OutputComponent to ensure proper rendering and default values.
  • Improved Monaco Editor initialization options in tests.

Closes #22

…y and styling

- Updated EditorComponent tests to include mock CompilerService for compile and test methods.
- Added validation for empty code in compile and test methods.
- Introduced OutputComponent with HTML and CSS for displaying output messages with different types (error, success, info).
- Created tests for OutputComponent to ensure proper rendering and default values.
- Improved Monaco Editor initialization options in tests.

This commit enhances the user experience by providing clear output feedback and robust testing for the editor functionalities.

Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
…ndling

- Introduced outputType input to OutputComponent, allowing for dynamic message types (error, success, info).
- Default outputType is set to 'info' to maintain existing behavior.

This update improves the flexibility of the OutputComponent in displaying various message types.

Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
@pushkarm029
Copy link
Contributor Author

@salazarsebas please review

Copy link
Member

@salazarsebas salazarsebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@salazarsebas salazarsebas merged commit ca1430b into ScaffoldRust:main Sep 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Basic Frontend Unit Tests [frontend]

2 participants