test: add comprehensive test coverage for props, typestyles build, and migrate packages#45
Merged
Merged
Conversation
✅ Deploy Preview for typestyles ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Copilot created this pull request from a session on behalf of
dbanksdesign
April 1, 2026 04:46
View session
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
Analyzed test coverage gaps across the monorepo and added 76 new tests across 6 new/expanded test files targeting previously untested modules.
Changes
New test files
packages/props/src/utils.test.ts(18 tests) — unit tests forsanitizeValue,toKebabCase, andisConditionalValuehelper functionspackages/props/src/generate.test.ts(14 tests) — unit tests forgenerateAllAtomicClasses(media queries, container queries,@supports, selector conditions, object/array value formats, camelCase→kebab-case) andgenerateFromCollectionspackages/props/src/runtime.test.ts(16 tests) — unit tests forbuildLookupMap,expandShorthands, andcreateResolver(direct values, conditional values, shorthand expansion, null-skipping)packages/typestyles/src/build.test.ts(6 tests) — tests forcollectStylesFromModulescovering sync/async loaders, multiple loaders, deduplication, and orderingpackages/migrate/test/css.test.ts(12 tests) — direct unit tests forcssToObjectExpression: camelCase conversion, custom properties, numeric literals, nested selectors, at-rule warnings, key node typespackages/migrate/test/files.test.ts(10 tests) — tests forcollectTargetFiles: extension filtering, literal file targets, include/exclude patterns, defaultnode_modulesexclusion, sorted output, deduplicationExpanded test file
packages/migrate/test/migrate.test.ts— 20 additional cases:migrateSource:@emotion/styled,@emotion/css,cssfromstyled-components,styled(Component)wrapping, className merging, exported component warning, non-JSX reference warning, existing typestyles import reuse, duplicate styles specifier prevention, kebab-case namingrunMigration: summary counts, JSON report writing, extensions option, warning accumulation, empty directory, nested report directory creationTest results
typestylespropsmigrate