summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/include-files.test.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2025-02-24 20:50:08 +0800
committerGravatar GitHub <noreply@github.com> 2025-02-24 12:50:08 +0000
commit2e1321e9d5b27da3e86bc4021e4136661a8055aa (patch)
tree3b06e3e2d3ac67a06487da4286b1e70045014b07 /packages/integrations/netlify/test/functions/include-files.test.js
parentbaf0c405dd9be1a13b1739bee45bb4aa258b3cab (diff)
downloadastro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.tar.gz
astro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.tar.zst
astro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.zip
Replace globby/fast-glob/tiny-glob with tinyglobby (#13299)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com> Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/netlify/test/functions/include-files.test.js')
-rw-r--r--packages/integrations/netlify/test/functions/include-files.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/netlify/test/functions/include-files.test.js b/packages/integrations/netlify/test/functions/include-files.test.js
index f88f1319d..e54e116a7 100644
--- a/packages/integrations/netlify/test/functions/include-files.test.js
+++ b/packages/integrations/netlify/test/functions/include-files.test.js
@@ -3,7 +3,7 @@ import { existsSync } from 'node:fs';
import { after, before, describe, it } from 'node:test';
import netlify from '@astrojs/netlify';
import * as cheerio from 'cheerio';
-import glob from 'fast-glob';
+import { globSync } from 'tinyglobby';
import { loadFixture } from '../../../../astro/test/test-utils.js';
describe(
@@ -32,7 +32,7 @@ describe(
it('Emits vite assets files', async () => {
for (const pattern of expectedAssetsInclude) {
- const files = glob.sync(pattern);
+ const files = globSync(pattern);
for (const file of files) {
assert.ok(
existsSync(new URL(file, expectedCwd)),
@@ -158,7 +158,7 @@ describe(
it('Does not include files when excluded', async () => {
for (const pattern of includeFiles) {
- const files = glob.sync(pattern, { ignore: excludedTxt });
+ const files = globSync(pattern, { ignore: excludedTxt });
for (const file of files) {
assert.ok(
existsSync(new URL(file, expectedCwd)),