Skip to content

Commit 08b07dc

Browse files
committed
fix: simplify glob pattern in test suite index
- Change from **/**.test.js to **.test.js (non-recursive) - Remove extra options that might interfere with Mocha globals
1 parent ab5ed10 commit 08b07dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vscode-extension/src/test/suite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export async function run(): Promise<void> {
1212

1313
const testsRoot = path.resolve(__dirname, '.');
1414

15-
// Glob pattern for test files
16-
const files = await glob('**/**.test.js', { cwd: testsRoot });
15+
// Find all test files
16+
const files = await glob('**.test.js', { cwd: testsRoot });
1717

1818
// Add files to the test suite
1919
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
2020

21-
// Run the mocha test
21+
// Run the tests
2222
return new Promise<void>((resolve, reject) => {
2323
try {
2424
mocha.run((failures: number) => {

0 commit comments

Comments
 (0)