[wp-trac] [WordPress Trac] #53606: wp-api-generated.js needs updating, needs CI to test for changes
WordPress Trac
noreply at wordpress.org
Tue Jul 6 13:48:21 UTC 2021
#53606: wp-api-generated.js needs updating, needs CI to test for changes
--------------------------+------------------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: REST API | Version: trunk
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
--------------------------+------------------------------------------
The `tests/qunit/fixtures/wp-api-generated.js` file is under version
control and it gets written to during the
`test_build_wp_api_client_fixtures()` test.
[https://core.trac.wordpress.org/search?ticket=on&q=wp-api-generated
Sometimes when the REST API schema gets updated this file gets forgotten].
This is currently the case and was introduced in [51241]. The file is not
up to date with the latest REST API schema.
To reproduce:
{{{
composer test -- --filter test_build_wp_api_client_fixtures && git status
--exit-code
}}}
We should:
* Update `wp-api-generated.js` to reflect the latest schema
* Add tests to CI so it fails if this happens again
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53606>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list