Make WordPress Core

Changeset 62860


Ignore:
Timestamp:
07/27/2026 09:48:07 PM (13 hours ago)
Author:
lancewillett
Message:

Docs: Document how to run the QUnit test suite.

Add a README section for running the JavaScript QUnit suite from a fresh checkout.

Developed in: https://github.com/WordPress/wordpress-develop/pull/12699

Props mukesh27, adrianmoldovanwp
Fixes #65719

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.md

    r62569 r62860  
    9898```
    9999
     100To run the JavaScript (QUnit) tests:
     101
     102```
     103npm run grunt qunit:compiled
     104```
     105
     106`qunit:compiled` builds first, then runs the suite. The QUnit runner loads
     107scripts from the built `build/` directory, so a plain `npm run grunt qunit`
     108requires a completed `npm run build` first without a build, every test fails
     109with a `jQuery is not defined` error.
     110
    100111#### To lint the workflow files
    101112
Note: See TracChangeset for help on using the changeset viewer.