[wp-trac] [WordPress Trac] #57844: Tests/Script Loader: Run build step in PHP Unit test actions.

WordPress Trac noreply at wordpress.org
Thu Mar 2 04:29:43 UTC 2023


#57844: Tests/Script Loader: Run build step in PHP Unit test actions.
------------------------------+---------------------
 Reporter:  peterwilsoncc     |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.2
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by peterwilsoncc):

 I've linked two pull request to this ticket, depending on what is
 considered the best approach.

 * [https://github.com/WordPress/wordpress-develop/pull/4161 Option one]:
 Run `npm run build:dev` as part of the PHP Unit GitHub actions.
 * [https://github.com/WordPress/wordpress-develop/pull/4162 Option two]:
 As the error only occurs if `SCRIPT_DEBUG === true`, then it may be
 possible to skip registering the scripts if the dependency files are not
 loaded. This approach may be a non-starter if other assets assume the
 presence of the development scripts if `SCRIPT_DEBUG` is `true`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57844#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list