mirror of
https://github.com/Nezumi-2711/google-drive-s3.git
synced 2026-09-22 13:38:30 +00:00
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { cloudflareTest } from "@cloudflare/vitest-pool-workers";
|
|
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
cloudflareTest({
|
|
wrangler: { configPath: "./wrangler.jsonc" },
|
|
miniflare: {
|
|
bindings: {
|
|
ACCESS_KEY: "test-access-key",
|
|
SECRET_KEY: "test-secret-key",
|
|
REGION: "auto",
|
|
GOOGLE_CLIENT_ID: "test-client-id",
|
|
GOOGLE_CLIENT_SECRET: "test-client-secret",
|
|
GOOGLE_REFRESH_TOKEN: "test-refresh-token",
|
|
DASHBOARD_PASSWORD: "test-dashboard-password",
|
|
DRIVE_ROOT_FOLDER: "s3-storage",
|
|
ALLOW_MULTIPART: "true",
|
|
ETAG_STYLE: "md5",
|
|
CORS_ALLOWED_ORIGINS: "http://localhost:5173",
|
|
ENABLE_DOCS: "true",
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
test: {
|
|
exclude: [...configDefaults.exclude, ".pnpm-wrangler/**", ".pnpm-store/**", "node_modules/**"],
|
|
},
|
|
});
|