feat(diagnostics): harden ingestion and delivery

This commit is contained in:
2026-07-15 00:43:49 +02:00
parent ead4e09a60
commit b602a3acb6
42 changed files with 22428 additions and 141 deletions

View File

@@ -0,0 +1,23 @@
import { cloudflareTest, readD1Migrations } from "@cloudflare/vitest-pool-workers";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const migrationsPath = resolve(dirname(fileURLToPath(import.meta.url)), "migrations");
export default defineConfig({
plugins: [
cloudflareTest(async () => ({
wrangler: { configPath: "./wrangler.jsonc" },
miniflare: {
bindings: {
INGEST_KEY: "test-ingest-key",
TEST_MIGRATIONS: await readD1Migrations(migrationsPath),
},
},
})),
],
test: {
setupFiles: ["./test/apply-migrations.ts"],
},
});