Detect whether code is running under the repository's test harness.
True for NODE_ENV=test or Vitest worker processes.
Detect whether code is running under the repository's test harness.