A Payload site, ready to clone

Placeholder: rounded tiles in soft blue and orange

A project’s own code now has its own tests, run after every upgrade

What changed

A project’s own code lives in its project folder, which upgrades never touch. Until now nothing ran tests written for that code: a project that wrote some had nowhere to put them. Now a test file next to the code is enough. One command runs them in a few seconds, with no database and no running site, using the same shortcuts to the template’s code as the site itself. The project checks run them too, so an upgrade that breaks a project’s template or plugin shows up straight away. A project with no tests still passes.

Where to see it

Developers: the template-site README, “Testing a project’s code”, with a worked example in src/test-fixtures/project-tests-project/. pnpm test:project runs project/*/.test.ts(x); pnpm test runs it first, and pnpm check:project and the apex-upgrade skill run it after their checks. Nothing to see on the public site.