Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update tests #23

Merged
merged 7 commits into from
Dec 24, 2024
Merged

test: update tests #23

merged 7 commits into from
Dec 24, 2024

Conversation

devaryakjha
Copy link
Owner

@devaryakjha devaryakjha commented Dec 24, 2024

…ic tags

- Introduced a new method, shouldForceWidgetSpan, to determine when to create widget spans for 'sub', 'sup', and 'mark' tags.
- Updated the _convertChildren method to utilize the new method, improving handling of unsupported elements.
- These changes enhance the TextConverter's ability to manage specific inline elements in the Tagflow application.
…tyles

- Enhanced the code example formatting by separating the <pre> and <code> tags for better readability.
- Added a new background style for code blocks, improving the visual presentation in the ArticleExample.
- These changes enhance the overall layout and styling of code examples within the Tagflow application.
- Added maxWidth parameter to 'code' and 'pre code' styles in TagflowTheme, allowing for better control over the width of code blocks.
- This change improves the layout and visual consistency of code elements within the Tagflow application.
…tional tags

- Updated CodeConverter to inherit from TextConverter, enhancing its functionality.
- Introduced support for 'code' and 'pre' tags in the shouldForceWidgetSpan method, improving the handling of these elements.
- Removed redundant methods for building pre and inline code elements, streamlining the conversion process.
- These changes enhance the overall efficiency and maintainability of the code conversion logic in the Tagflow application.
…eParser, and TagflowTheme

- Introduced unit tests for ListConverter to validate support for 'ul' and 'ol' tags, ensuring correct rendering of unordered lists.
- Enhanced TagflowElement tests to cover link operations, size attributes, and style parsing, improving robustness in element handling.
- Expanded StyleParser tests to include parsing for font weights, box fit, border radius, and border side definitions, ensuring accurate style interpretation.
- Added tests for TagflowTheme to verify theme creation, nested style resolution, and inline style merging, enhancing theme functionality.

These additions significantly improve test coverage and reliability of the Tagflow application, ensuring better handling of various elements and styles.
- Introduced new scripts in melos.yaml for running tests with coverage and combining coverage reports from all packages.
- Added a GitHub Actions workflow to automate testing on push and pull request events, including installation of dependencies and uploading coverage reports to Codecov.
- Updated README.md to include a Codecov badge for better visibility of test coverage status.

These changes enhance the testing infrastructure and improve visibility into code coverage for the Tagflow application.
- Included CODECOV_TOKEN in the GitHub Actions workflow for uploading coverage reports to Codecov.
- This change ensures secure access to the Codecov service, enhancing the automation of test coverage reporting in the Tagflow application.
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@devaryakjha devaryakjha merged commit c58b899 into main Dec 24, 2024
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.

2 participants