Enhance tests and refactor utility components for consistency - #52
Merged
Conversation
…g character count, PIN generation, and URL slug generation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new browser-based tests for several utility components and makes minor improvements to the
TextToSpeechcomponent. The main focus is on adding comprehensive test coverage for theCharCounter,DiceRollerTab,LoremIpsum, andMemeGeneratorcomponents. Additionally, form validation and button enablement logic are improved in theTextToSpeechcomponent, and there are minor dependency reference updates inpnpm-lock.yaml.New and Improved Test Coverage:
CharCounter, including input handling, character/word/line counting, and real-time updates.DiceRollerTab, covering tab navigation and toggling between dice roller modes.LoremIpsum, validating form input, radio button selection, error handling, and reset functionality.MemeGenerator, verifying the presence of main UI sections, upload/reset/export buttons, and text controls.Component Improvements:
TextToSpeechform validation by enabling the play button only when the text input is valid, and switched form validation mode to'onChange'for better UX. [1] [2]Dependency Reference Updates:
vitestdependency references inpnpm-lock.yamlto simplify and deduplicate the dependency chain. [1] [2] [3] [4] [5] [6]