feat:移除了弹窗,服务器添加sls
This commit is contained in:
26
apps/telemetry-worker/vitest.config.ts
Normal file
26
apps/telemetry-worker/vitest.config.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { defineWorkersConfig, readD1Migrations } from '@cloudflare/vitest-pool-workers/config'
|
||||
|
||||
const migrations = await readD1Migrations('./migrations')
|
||||
|
||||
export default defineWorkersConfig({
|
||||
test: {
|
||||
setupFiles: ['./test/setup.ts'],
|
||||
poolOptions: {
|
||||
workers: {
|
||||
main: './src/index.ts',
|
||||
singleWorker: true,
|
||||
miniflare: {
|
||||
compatibilityDate: '2025-08-13',
|
||||
d1Databases: ['DB'],
|
||||
bindings: {
|
||||
INSTALLATION_HMAC_SECRET: 'test-only-secret-that-is-longer-than-thirty-two-bytes',
|
||||
INGEST_ENABLED: 'true',
|
||||
MAX_BATCHES_PER_INSTALLATION_PER_DAY: '25',
|
||||
MAX_ACCEPTED_BATCHES_PER_DAY: '100000',
|
||||
TEST_MIGRATIONS: migrations,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user