Opened 16 months ago
#59644 new defect (bug)
Migrate QUnit tests to Jest
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Focuses: | Cc: |
Description
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
Note: See
TracTickets for help on using
tickets.