mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 06:31:27 -07:00
20 lines
548 B
TypeScript
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,
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
})
|