Repository navigation
Toolchain
php bones migrate:to-v2writes the@wordpress/scripts37 toolchain (#150). 37'stest-unit-jsruns Vitest, sotestandtest:watchkeep Jest throughtest-unit-jest, with Jest 30,jest-environment-jsdom,babel-jest,@babel/core,@wordpress/jest-preset-default14 and@wordpress/babel-preset-default.globmoves to 13 andwp-prettierto ^3.9.6.@wordpress/scripts37 needs Node^22.22.2 || ^24.15.0 || >=26. "Review manually" now says so, and names theeslint-plugin-jestoverride that JavaScript tests need, since 37 lints test files with Vitest's rules.
Fixes
- A
jest.config.jswritten by an earliermigrate:to-v2requires@wordpress/scripts/config/jest-unit.config, which 37 no longer ships: the command replaces it when you never touched it, and keeps it with a warning when you did (#150). - The Jest stub passes while a plugin has no JavaScript tests, instead of failing with "No tests found" (#151).
The 14 boilerplates move to the same toolchain with this release.
To update a plugin: composer update wpbones/wpbones. For the new toolchain, commit first and run php bones migrate:to-v2 again: it rewrites the package.json scripts and devDependencies, replaces the 3.4 jest.config.js as above, keeps your other files and yarn.lock, and, as on the first run, deletes a package-lock.json or pnpm-lock.yaml.
Full Changelog: v3.4.1...v3.5.0