Compute isDocker() and isAgentInstalled() once and reuse for both the deploy check and logging. Rename setup.test.ts to utils.test.ts to match the module it tests.