Tests for the next module use PHPUnit. To run the tests:
- Run
composer installinside the/drupaldirectory. - Then run
yarn test:nextfrom the root of the repo to run the PHPUnit tests.
Note: We have a CI for running these tests on GitHub Actions.
We use Cypress to run end-to-end tests for the examples.
You will need a copy of the database and files on your local machine to run the tests. These are not tracked in this repo. You can reached out to @shadcn to get you a copy.
TODO: Add a test profile that builds the Drupal site from config with demo content.
To run the tests:
- Setup the Drupal site with the database and files.
- Run
yarnfrom the root of the monorepo to install dependencies. - Then run
yarn test:e2e:cito run the tests.