From bd0263e7679483cc315b6c5c17b41438393b4ab1 Mon Sep 17 00:00:00 2001 From: lilnasy <69170106+lilnasy@users.noreply.github.com> Date: Wed, 3 Jan 2024 17:04:38 +0000 Subject: [PATCH] add test --- .../test/fixtures/static/astro.config.mjs | 6 +++++ .../vercel/test/fixtures/static/package.json | 9 +++++++ .../test/fixtures/static/src/pages/404.astro | 8 ++++++ .../test/fixtures/static/src/pages/one.astro | 8 ++++++ .../test/fixtures/static/src/pages/two.astro | 8 ++++++ .../integrations/vercel/test/static.test.js | 26 +++++++++++++++++++ pnpm-lock.yaml | 9 +++++++ 7 files changed, 74 insertions(+) create mode 100644 packages/integrations/vercel/test/fixtures/static/astro.config.mjs create mode 100644 packages/integrations/vercel/test/fixtures/static/package.json create mode 100644 packages/integrations/vercel/test/fixtures/static/src/pages/404.astro create mode 100644 packages/integrations/vercel/test/fixtures/static/src/pages/one.astro create mode 100644 packages/integrations/vercel/test/fixtures/static/src/pages/two.astro create mode 100644 packages/integrations/vercel/test/static.test.js diff --git a/packages/integrations/vercel/test/fixtures/static/astro.config.mjs b/packages/integrations/vercel/test/fixtures/static/astro.config.mjs new file mode 100644 index 0000000000000..55620c2405333 --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/static/astro.config.mjs @@ -0,0 +1,6 @@ +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/static'; + +export default defineConfig({ + adapter: vercel() +}); diff --git a/packages/integrations/vercel/test/fixtures/static/package.json b/packages/integrations/vercel/test/fixtures/static/package.json new file mode 100644 index 0000000000000..89fb910ff8b8c --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/static/package.json @@ -0,0 +1,9 @@ +{ + "name": "@test/astro-vercel-basic", + "version": "0.0.0", + "private": true, + "dependencies": { + "@astrojs/vercel": "workspace:*", + "astro": "workspace:*" + } +} diff --git a/packages/integrations/vercel/test/fixtures/static/src/pages/404.astro b/packages/integrations/vercel/test/fixtures/static/src/pages/404.astro new file mode 100644 index 0000000000000..9e307c5c292c6 --- /dev/null +++ b/packages/integrations/vercel/test/fixtures/static/src/pages/404.astro @@ -0,0 +1,8 @@ + +
+