mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
339a91735b
* turnstile * require turnstile * homepage refresh * implemented rooms visited endpoint for friends * update default profile pic * add a meta download button * add subroom permissions * enable signup
20 lines
607 B
TypeScript
20 lines
607 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',
|
|
// The Turnstile keypair is NOT bound here: both keys come from the Secrets
|
|
// Store now, and the tests seed the local store with the test pair (see
|
|
// src/test/integration/api.test.ts). A plain binding of the same name would
|
|
// shadow the store binding with a string.
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
})
|