summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/test-utils.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-09-28 04:48:26 +0800
committerGravatar GitHub <noreply@github.com> 2023-09-27 16:48:26 -0400
commit4ed410db507723d8f8edd70aec508415d77ad2f5 (patch)
treedd876939fc708358d0675ba159e0a1d9af0fcd79 /packages/integrations/netlify/test/functions/test-utils.js
parenta10a798c18512796d2c8b8ed49924dafd884e04c (diff)
downloadastro-4ed410db507723d8f8edd70aec508415d77ad2f5.tar.gz
astro-4ed410db507723d8f8edd70aec508415d77ad2f5.tar.zst
astro-4ed410db507723d8f8edd70aec508415d77ad2f5.zip
Remove Netlify adapter from core (#8574)
* New link * More explicit * Add placeholder package.json * lockfile * add keyworkds
Diffstat (limited to 'packages/integrations/netlify/test/functions/test-utils.js')
-rw-r--r--packages/integrations/netlify/test/functions/test-utils.js34
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);
- }
- },
- },
- };
-}