test: add comprehensive Vue component tests with Vitest#142
Merged
Conversation
## Summary - Added Vitest for testing Vue components in Storybook - Introduced new test scripts for running and watching tests - Updated package dependencies to include Vitest and related tools - Created new test files for various components to ensure functionality ## Changes - Modified `package.json` in the Storybook Vue package to include test scripts - Updated `vite.config.ts` to configure Vitest for testing - Added new test files for components, including nested marks and overlays - Enhanced focus utilities for better test interactions ## Benefits - Improved testing capabilities for Vue components within Storybook - Streamlined development workflow with integrated testing - Ensured component reliability through comprehensive test coverage
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
## Summary - Changed the version of '@types/node' from 24.12.0 to 17.0.45 for '@types/sax' dependency. ## Changes - Updated the pnpm-lock.yaml file to reflect the new dependency version. ## Benefits - Ensures compatibility with the specified version of '@types/sax' and maintains consistency in the dependency tree.
|
Deployment failed with the following error: Learn More: https://vercel.com/nowelys-projects?upgradeToPro=build-rate-limit |
## Summary - Updated type definitions to allow `Component` types for `container` and `span` slots. - Improved handling of component references in `Container.vue` to support both Vue component instances and raw elements. - Enhanced `MarkRenderer.vue` to conditionally render components based on child nodes. - Refined `resolveSlot.ts` to return either a string or a `Component` type for slot resolution. ## Benefits - Increases flexibility in slot usage, allowing for more complex component structures. - Improves type safety and clarity in component props, enhancing developer experience. - Ensures better rendering logic in components, leading to more robust UI behavior.
|
Deployment failed with the following error: Learn More: https://vercel.com/nowelys-projects?upgradeToPro=build-rate-limit |
## Summary - Converted `Container.vue` and `Token.vue` from `<script setup>` to the options API. - Encapsulated logic within the `setup` function for better organization and clarity. - Enhanced type definitions for props in `Token.vue` to improve type safety. ## Benefits - Improves readability and maintainability of the components. - Aligns with the options API for consistency across the codebase. - Facilitates easier debugging and testing of component logic.
## Summary - Updated type definitions for `className` and `style` in `Container.vue` to improve type safety. - Introduced `StyleProperties` type for better clarity in style handling. ## Benefits - Enhances type safety and developer experience when working with component styles and class names.
Nowely
pushed a commit
that referenced
this pull request
Mar 7, 2026
🤖 I have created a release *beep* *boop* --- ## [0.5.0](0.4.0...0.5.0) (2026-03-07) ### Features * **core:** add ContentEditableController for DOM-based editing ([#134](#134)) ([633133b](633133b)) ### Refactoring * extract shared logic from framework adapters to core ([#145](#145)) ([795c0e8](795c0e8)) * improve Signal typing with interface augmentation for framework-specific use() return types ([#143](#143)) ([e6d4efc](e6d4efc)) ### Miscellaneous * migrate to pnpm catalog for centralized dependency management ([#140](#140)) ([b71cd55](b71cd55)) * update oxlint configuration ([#144](#144)) ([1db73ec](1db73ec)) ### Tests * add comprehensive Vue component tests with Vitest ([#142](#142)) ([231f3dc](231f3dc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Summary
Test Coverage
Base.spec.ts- Core component rendering and behavior (187 tests)keyboard.spec.ts- Keyboard navigation and shortcutsnested.spec.ts- Nested mark token handlingOverlay.spec.ts- Overlay component integrationslots.spec.ts- Slot rendering scenarios