Skip to content

Commit 674ce9e

Browse files
committed
@W-17311830@ Removing fastglob
1 parent b274e9f commit 674ce9e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

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

packages/code-analyzer-flowtest-engine/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@types/node": "^20.0.0",
1818
"@types/semver": "^7.5.8",
1919
"@types/tmp": "^0.2.6",
20-
"fast-glob": "^3.3.2",
2120
"semver": "^7.6.3",
2221
"tmp": "^0.2.3"
2322
},

packages/code-analyzer-flowtest-engine/test/python/FlowTestCommandWrapper.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import fs from 'node:fs/promises';
22
import path from 'node:path';
33
import {FlowTestExecutionResult, RunTimeFlowTestCommandWrapper} from "../../src/python/FlowTestCommandWrapper";
44
import {PythonCommandExecutor} from '../../src/python/PythonCommandExecutor';
5-
import * as fg from 'fast-glob';
65

76
const PYTHON_COMMAND = 'python3';
87
const PATH_TO_GOLDFILES = path.join(__dirname, '..', 'test-data', 'goldfiles', 'FlowTestCommandWrapper.test.ts');
@@ -59,8 +58,9 @@ describe('FlowTestCommandWrapper implementations', () => {
5958
});
6059

6160
it('Generates no log file', async () => {
62-
const flowLogFiles = await fg.glob('./**/.flowtest_log_*.log');
63-
expect(flowLogFiles).toHaveLength(0);
61+
const logFileMatcher = /\.flowtest_log_.+\.log/;
62+
const logFiles = (await fs.readdir('.')).filter(f => f.match(logFileMatcher));
63+
expect(logFiles).toHaveLength(0);
6464
});
6565
});
6666

0 commit comments

Comments
 (0)