Skip to content

Conversation

@redonkulus
Copy link
Contributor

@redonkulus redonkulus commented Nov 30, 2022

I confirm that this contribution is made under a BSD license and that I have the authority necessary to make this contribution on behalf of its copyright owner.


As I've been adding/modifying rules, there really wasn't a way to verify the syntax is correct. I added a simple jest test that will iterate over the rules and dynamically build each atomizer class name based on the available arguments.

NOTE: One caveat is that for rules that support multiple values (e.g. place-content: baseline center), I only test the first property of the first argument with each property of the second argument. Testing each combination of both would be overkill. Also, the one downside of this approach that potentially some combinations of values may conflict with each other if actually used on a page.

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2022

⚠️ No Changeset found

Latest commit: bd093aa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
acss-site ✅ Ready (Inspect) Visit Preview Dec 1, 2022 at 0:16AM (UTC)

carriemorrison
carriemorrison previously approved these changes Dec 1, 2022
Copy link
Collaborator

@carriemorrison carriemorrison left a comment

Choose a reason for hiding this comment

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

This is super helpful! 👯

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.

3 participants