From e75f4f6d91e3dd85e3013f942cdd92d8376b261b Mon Sep 17 00:00:00 2001 From: lilnasy <69170106+lilnasy@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:12:21 +0000 Subject: [PATCH] add test --- .../fixtures/max-duration/astro.config.mjs | 9 +++++++++ .../test/fixtures/max-duration/package.json | 10 ++++++++++ .../fixtures/max-duration/src/pages/one.astro | 8 ++++++++ .../fixtures/max-duration/src/pages/two.astro | 8 ++++++++ .../vercel/test/max-duration.test.js | 19 +++++++++++++++++++ pnpm-lock.yaml | 9 +++++++++ 6 files changed, 63 insertions(+) create mode 100644 packages/integrations/vercel/test/fixtures/max-duration/astro.config.mjs create mode 100644 packages/integrations/vercel/test/fixtures/max-duration/package.json create mode 100644 packages/integrations/vercel/test/fixtures/max-duration/src/pages/one.astro create mode 100644 packages/integrations/vercel/test/fixtures/max-duration/src/pages/two.astro create mode 100644 packages/integrations/vercel/test/max-duration.test.js diff --git a/packages/integrations/vercel/test/fixtures/max-duration/astro.config.mjs b/packages/integrations/vercel/test/fixtures/max-duration/astro.config.mjs new file mode 100644 index 000000000000..a02d60c14a56 --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/max-duration/astro.config.mjs @@ -0,0 +1,9 @@ +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/serverless'; + +export default defineConfig({ + output: "server", + adapter: vercel({ + maxDuration: 60 + }) +}); diff --git a/packages/integrations/vercel/test/fixtures/max-duration/package.json b/packages/integrations/vercel/test/fixtures/max-duration/package.json new file mode 100644 index 000000000000..9a45d782edd9 --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/max-duration/package.json @@ -0,0 +1,10 @@ +{ + "name": "@test/vercel-max-duration", + "version": "0.0.0", + "private": true, + "dependencies": { + "@astrojs/vercel": "workspace:*", + "astro": "workspace:*" + } +} + \ No newline at end of file diff --git a/packages/integrations/vercel/test/fixtures/max-duration/src/pages/one.astro b/packages/integrations/vercel/test/fixtures/max-duration/src/pages/one.astro new file mode 100644 index 000000000000..0c7fb90a735e --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/max-duration/src/pages/one.astro @@ -0,0 +1,8 @@ + +
+