first commit

This commit is contained in:
wsq
2026-05-13 21:58:19 +08:00
commit 0167c66cb7
1475 changed files with 233414 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { execSync } from 'node:child_process'
import { loadTestEnv } from './env'
export async function runGlobalTeardown() {
loadTestEnv()
const shouldBootstrap = process.env.BILLING_TEST_BOOTSTRAP === '1' || process.env.SYSTEM_TEST_BOOTSTRAP === '1'
if (!shouldBootstrap) return
if (process.env.BILLING_TEST_KEEP_SERVICES === '1') return
execSync('docker compose -f docker-compose.test.yml down -v --remove-orphans', {
cwd: process.cwd(),
stdio: 'inherit',
})
}