For testing, we’ll want to run a separate environment for it.

  1. 1.nx test [project name] --runInBand

In our git pre-push hooks, we have separate commands for running unit & integration test. The command above runs both.

Sometimes the caching system breaks down & doesn’t run tests on a modified spec, we could add --skip-nx-cache for that.

You’ll want to add the --verbose flag to enable console logging for spec files.