This commit is contained in:
2026-09-01 14:27:04 +08:00
parent 9e32efdd90
commit d2092bf0b6
3 changed files with 48 additions and 0 deletions
@@ -6,6 +6,8 @@ const read = (name) => readFileSync(new URL(name, import.meta.url), 'utf8')
const client = read('./client-test-env-acceptance.mjs')
const clientPhase2 = read('./client-phase2-test-env-acceptance.mjs')
const pendingOrders = read('./create-pending-review-orders.mjs')
const readme = read('./README.md')
const agents = read('./AGENTS.md')
const activeHttpScripts = [client, clientPhase2, pendingOrders]
const removedEnvironmentVariables = [
@@ -35,3 +37,13 @@ test('active scripts no longer carry the retired variables, fixed Gateway, or so
assert.doesNotMatch(pendingOrders, /const CONFIG\s*=/)
assert.doesNotMatch(pendingOrders, /PASSWORD:\s*'[^']+'/)
})
test('documentation names both external environment files and requires explicit selection', () => {
for (const source of [readme, agents]) {
assert.match(source, /chongchong-global-dev-acceptance\.env/)
assert.match(source, /chongchong-global-test-acceptance\.env/)
assert.match(source, /--env-file/)
}
assert.match(readme, /不会自行查找或加载上述文件/)
assert.match(readme, /ADMIN_OVERSEAS_GATEWAY/)
})