[wp-trac] [WordPress Trac] #59644: Migrate QUnit tests to Jest

WordPress Trac noreply at wordpress.org
Tue Oct 17 11:17:29 UTC 2023


#59644: Migrate QUnit tests to Jest
------------------------------+----------------------------
 Reporter:  swissspidy        |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+----------------------------
 The QUnit tests really haven't evolved or expanded in recent years.

 Alternatively, Gutenberg has a well developed test library based on Jest,
 and exports all of the config as a package we could use. In the interest
 of standardising, I suggest migrating our existing QUnit tests to work in
 Jest instead.

 This will make it easier to contribute to these tests as well, plus it
 allows us to remove the last remaining usage of Puppeteer, as it turns out
 the QUnit tests run with that on CI. See
 https://core.trac.wordpress.org/ticket/59517#comment:13

 They don't really need a headless browser though, Jest + jsdom should
 suffice.


 Previously mentioned in #37117

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59644>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list