chore: reset repository history

This commit is contained in:
xixu-me committed 2026-03-21 18:51:02 +08:00
commit d528ce9578
59 files changed
+21559

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
/**
* Vitest configuration for running Cloudflare Worker tests with coverage reporting.
*/
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';
// The Vitest pool currently bundles a slightly older Miniflare/workerd runtime than the
// top-level Wrangler CLI, so tests need to pin to the latest date that runtime supports.
const TEST_RUNTIME_COMPATIBILITY_DATE = '2026-03-10';
export default defineWorkersConfig({
test: {
coverage: {
provider: 'istanbul',
reporter: ['text-summary', 'lcov', 'json-summary'],
reportsDirectory: './coverage',
include: ['src/**/*.ts'],
exclude: ['src/**/*.d.ts'],
},
fileParallelism: false,
poolOptions: {
workers: {
miniflare: {
compatibilityDate: TEST_RUNTIME_COMPATIBILITY_DATE,
},
wrangler: { configPath: './wrangler.jsonc' },
},
},
},
});