The defect is lib/config.mjs as it was at the last commit: only review.command was kept out of a project file, so deploy.previewCommand could be planted in one and was read.
FAIL  every setting that holds a shell command is read and written only from the global config (5652.616125ms)
ℹ tests 1
ℹ pass 0
ℹ fail 1

FAIL  failing tests:

test at test/config.test.mjs:324:1
FAIL  every setting that holds a shell command is read and written only from the global config (5652.616125ms)
  AssertionError [ERR_ASSERTION]: deploy.previewCommand
      at TestContext.<anonymous> (file:///private/tmp/x100-red-e2aPgJ/test/config.test.mjs:333:12)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: '',
    expected: /deploy\.previewCommand is a shell command, so it can only be set with --global/,
    operator: 'match',
    diff: 'simple'
  }
