Running tests on the cli environment causes conflicts with the dev environment; the tests will log you out, modify the theme, etc.
Running tests on tests-wordpress will allow you to run tests along with the dev environment without interference.
Testing:
Run npm run wp-env start to start a WordPress environment.
Log into the dev environment and see that everything is working normally.
Running npm run test:php will work as before, and will not mess with the dev environment.
Before applying this branch, running npm run test:php would log you out and activate an invalid theme on your dev environment.
Running tests on the
cli
environment causes conflicts with thedev
environment; the tests will log you out, modify the theme, etc.Running tests on
tests-wordpress
will allow you to run tests along with thedev
environment without interference.Testing:
npm run wp-env start
to start a WordPress environment.npm run test:php
will work as before, and will not mess with the dev environment. Before applying this branch, runningnpm run test:php
would log you out and activate an invalid theme on your dev environment.