Skip to content

Commit a03506b

Browse files
committed
FISH-7541 polish test
1 parent b00e378 commit a03506b

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

src/test/suite/index.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ export async function run(): Promise<void> {
1111
});
1212

1313
const testsRoot = path.resolve(__dirname, '..');
14-
15-
// // Add test files to the Mocha instance
16-
// const testFiles = await getTestFiles(testsRoot);
17-
// testFiles.forEach((file) => {
18-
// mocha.addFile(file);
19-
// });
20-
21-
// Detect test files and add them to Mocha
2214
const testFiles = findTestFiles(testsRoot);
2315
testFiles.forEach((file: string) => {
2416
mocha.addFile(file);
@@ -39,30 +31,6 @@ export async function run(): Promise<void> {
3931
console.error('Failed to run tests:', error);
4032
process.exit(1);
4133
}
42-
43-
// return new Promise((c, e) => {
44-
// glob('**/**.test.js', { cwd: testsRoot }, (err: any, files: string[]) => {
45-
// if (err) {
46-
// return e(err);
47-
// }
48-
49-
// // Add files to the test suite
50-
// files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
51-
52-
// try {
53-
// // Run the mocha test
54-
// mocha.run((failures: number) => {
55-
// if (failures > 0) {
56-
// e(new Error(`${failures} tests failed.`));
57-
// } else {
58-
// c();
59-
// }
60-
// });
61-
// } catch (err) {
62-
// e(err);
63-
// }
64-
// });
65-
// });
6634
}
6735

6836
function findTestFiles(rootDir: string): string[] {

0 commit comments

Comments
 (0)