release: opensource snapshot 2026-02-27 19:25:00

This commit is contained in:
saturn
2026-02-27 19:25:00 +08:00
commit 5de9622c8b
1055 changed files with 164772 additions and 0 deletions

50
vitest.config.ts Normal file
View File

@@ -0,0 +1,50 @@
import { defineConfig } from 'vitest/config'
import { resolve } from 'node:path'
export default defineConfig({
css: {
postcss: {
plugins: [],
},
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
test: {
environment: 'node',
css: false,
pool: 'forks',
poolOptions: {
forks: {
minForks: 1,
maxForks: 1,
},
},
setupFiles: ['./tests/setup/env.ts'],
globalSetup: ['./tests/setup/global-setup.ts'],
include: ['**/*.test.ts'],
testTimeout: 30_000,
hookTimeout: 60_000,
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'json-summary'],
reportsDirectory: './coverage/billing',
include: [
'src/lib/billing/cost.ts',
'src/lib/billing/mode.ts',
'src/lib/billing/task-policy.ts',
'src/lib/billing/runtime-usage.ts',
'src/lib/billing/service.ts',
'src/lib/billing/ledger.ts',
],
thresholds: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
})