Tests: Add Jest unit tests for core Model and Field classes#340
Tests: Add Jest unit tests for core Model and Field classes#340
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #340 +/- ##
============================================
+ Coverage 30.63% 30.90% +0.26%
Complexity 4410 4410
============================================
Files 291 291
Lines 36918 36918
============================================
+ Hits 11310 11408 +98
+ Misses 25608 25510 -98
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What
Part of #315.
Adds Jest unit tests for the core JavaScript Model and Field class system.
Why
These classes are foundational to the JavaScript architecture.
How
Adding 233 tests across 9 test files:
model.test.jsacf.Modelfield.test.jsacf.Fieldfields.test.jsfields/select.test.jsfields/radio.test.jsfields/true-false.test.jsfields/range.test.jsfields/button-group.test.jsfields/url.test.jsTesting Instructions
Run the test suite: