diff options
Diffstat (limited to 'packages/integrations/netlify/test/functions/test-utils.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/test-utils.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/packages/integrations/netlify/test/functions/test-utils.js b/packages/integrations/netlify/test/functions/test-utils.js deleted file mode 100644 index bed187962..000000000 --- a/packages/integrations/netlify/test/functions/test-utils.js +++ /dev/null @@ -1,34 +0,0 @@ -// @ts-check -import { fileURLToPath } from 'node:url'; - -export * from '../../../../astro/test/test-utils.js'; - -/** - * - * @returns {import('../../../../astro/dist/types/@types/astro').AstroIntegration} - */ -export function testIntegration({ setEntryPoints } = {}) { - return { - name: '@astrojs/netlify/test-integration', - hooks: { - 'astro:config:setup': ({ updateConfig }) => { - updateConfig({ - vite: { - resolve: { - alias: { - '@astrojs/netlify/netlify-functions.js': fileURLToPath( - new URL('../../dist/netlify-functions.js', import.meta.url) - ), - }, - }, - }, - }); - }, - 'astro:build:ssr': ({ entryPoints }) => { - if (entryPoints.size) { - setEntryPoints(entryPoints); - } - }, - }, - }; -} |