diff options
Diffstat (limited to 'packages/integrations/netlify/test/functions/test-utils.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/test-utils.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/packages/integrations/netlify/test/functions/test-utils.js b/packages/integrations/netlify/test/functions/test-utils.js index c977af42e..46128095e 100644 --- a/packages/integrations/netlify/test/functions/test-utils.js +++ b/packages/integrations/netlify/test/functions/test-utils.js @@ -1,34 +1,34 @@ // @ts-check -import { fileURLToPath } from 'node:url'; +import { fileURLToPath } from "node:url"; -export * from '../test-utils.js'; +export * from "../test-utils.js"; /** * * @returns {import('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); - } - }, - }, - }; + 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); + } + }, + }, + }; } |