Skip to content

Commit 95a2cd3

Browse files
committed
chore: fix glob
1 parent 0667cb5 commit 95a2cd3

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-e2e-tests/helpers/gunzip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Debug from 'debug';
2-
import fastGlob from 'fast-glob';
2+
import { glob as globAsync } from 'glob';
33
import { createReadStream, createWriteStream } from 'fs';
44
import { pipeline } from 'stream/promises';
55
import { createGunzip } from 'zlib';
@@ -21,7 +21,7 @@ async function gunzip(input: string, output: string, signal: AbortSignal) {
2121
}
2222

2323
async function run(glob: string, signal: AbortSignal) {
24-
const filenames = await fastGlob(glob);
24+
const filenames = await globAsync(glob);
2525
for (const input of filenames) {
2626
if (signal.aborted) {
2727
return;

packages/compass-e2e-tests/helpers/test-runner-global-fixtures.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export async function mochaGlobalSetup(this: Mocha.Runner) {
6767
try {
6868
debug('Unzipping fixtures...');
6969
await gunzip(
70-
path.join(E2E_WORKSPACE_PATH, 'fixtures', '*.gz'),
70+
// Not using absolute paths because Windows fails to resolve glob
71+
// collectly in this case
72+
'../fixtures/*.gz',
7173
globalFixturesAbortController.signal
7274
);
7375

packages/compass-e2e-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"electron": "^30.5.1",
5353
"electron-to-chromium": "^1.5.41",
5454
"eslint": "^7.25.0",
55-
"fast-glob": "^3.2.7",
5655
"glob": "^10.2.5",
5756
"hadron-build": "^25.5.12",
5857
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)