summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/test-utils.js
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2023-07-13 09:21:33 +0100
committerGravatar GitHub <noreply@github.com> 2023-07-13 09:21:33 +0100
commitf21357b69d94fe8d81f267efddb182d1a3cc678a (patch)
treefd4d536dffd34ca30d58e6b1e3140576ce3b25fd /packages/integrations/netlify/test/functions/test-utils.js
parentb30a1bc2b8ad5376dc3e88c185e2ad3979b43ab8 (diff)
downloadastro-f21357b69d94fe8d81f267efddb182d1a3cc678a.tar.gz
astro-f21357b69d94fe8d81f267efddb182d1a3cc678a.tar.zst
astro-f21357b69d94fe8d81f267efddb182d1a3cc678a.zip
feat(@astrojs/netlify): add `build.split` support (#7615)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Diffstat (limited to 'packages/integrations/netlify/test/functions/test-utils.js')
-rw-r--r--packages/integrations/netlify/test/functions/test-utils.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/integrations/netlify/test/functions/test-utils.js b/packages/integrations/netlify/test/functions/test-utils.js
index 02b5d2ad9..eff6c2782 100644
--- a/packages/integrations/netlify/test/functions/test-utils.js
+++ b/packages/integrations/netlify/test/functions/test-utils.js
@@ -7,7 +7,7 @@ export * from '../../../../astro/test/test-utils.js';
*
* @returns {import('../../../../astro/dist/types/@types/astro').AstroIntegration}
*/
-export function testIntegration() {
+export function testIntegration({ setEntryPoints } = {}) {
return {
name: '@astrojs/netlify/test-integration',
hooks: {
@@ -24,6 +24,11 @@ export function testIntegration() {
},
});
},
+ 'astro:build:ssr': ({ entryPoints }) => {
+ if (entryPoints.size) {
+ setEntryPoints(entryPoints);
+ }
+ },
},
};
}