-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Global Styles: Add unit tests for edit site editor utils #34401
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
The tests pass locally, so I wonder if you can rebase this PR from latest |
e554914
to
0594630
Compare
The failing CI checks appear to be an issue with |
0594630
to
7817e48
Compare
Size Change: 0 B Total Size: 1.04 MB ℹ️ View Unchanged
|
Description
Adds unit tests to global styles utils in
packages/edit-site/src/components/editor/utils.js
for:getPresetVariable()
getValueFromVariable()
Note:
This PR does not include tests for the
useSetting()
hook, which lives in the same utils file.How has this been tested?
Run
npm run test-unit packages/edit-site/src/components/editor/test/utils.js
in a terminal from within the Gutenberg repoScreenshots
Before
After
Types of changes
Adds Tests
Checklist:
*.native.js
files for terms that need renaming or removal).