File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6836function findTestFiles ( rootDir : string ) : string [ ] {
You can’t perform that action at this time.
0 commit comments