Files
recflare/apps/img/vitest.config.ts
T
2026-08-07 15:10:09 -04:00

20 lines
548 B
TypeScript

import { cloudflareTest } from '@cloudflare/vitest-pool-workers'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [
cloudflareTest({
wrangler: { configPath: `${__dirname}/wrangler.jsonc` },
miniflare: {
bindings: {
ENVIRONMENT: 'VITEST',
// Signing is off in `wrangler.jsonc`; turn it on here so the `?sig=p1`
// path stays covered. The flag-off behaviour is tested by calling the
// app directly with an overridden env.
IMG_SIGNING_ENABLED: true,
},
},
}),
],
})