-
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
Template Parts: Add unit tests for template part creation functions #47224
Conversation
Size Change: -5 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
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.
Yay! Thank you ❤️
Co-authored-by: Robert Anderson <[email protected]>
Flaky tests detected in cef314b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3944325858
|
What?
Follow up to #47082 that adds unit tests for
getUniqueTemplatePartTitle
andgetCleanTemplatePartSlug
.Why?
To make sure these are working correctly. :)
How?
Some pretty basic Jest unit tests in
packages/edit-site/src/utils/test/
.Testing Instructions
Run
npm run test:unit packages/edit-site/src/utils/test/template-part-create.js
and you should see these tests pass: