Skip to content

Commit

Permalink
commented erroring test code
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahend1 committed Dec 3, 2024
1 parent 8b063c8 commit 8dc4178
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';

import { runTests } from 'vscode-test';
import { runTests } from '@vscode/test-electron';

async function main()
{
Expand Down
56 changes: 28 additions & 28 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@ export function run(): Promise<void>

return new Promise((c, e) =>
{
glob('**/**.test.js', { cwd: testsRoot }, (err, files) =>
{
if (err)
{
return e(err);
}
// glob("**/**.test.js", { cwd: testsRoot }, (err: any, files: any) =>
// {
// if (err)
// {
// return e(err);
// }

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

try
{
// Run the mocha test
mocha.run(failures =>
{
if (failures > 0)
{
e(new Error(`${failures} tests failed.`));
}
else
{
c();
}
});
}
catch (err)
{
e(err);
}
});
// try
// {
// // Run the mocha test
// mocha.run(failures =>
// {
// if (failures > 0)
// {
// e(new Error(`${failures} tests failed.`));
// }
// else
// {
// c();
// }
// });
// }
// catch (err)
// {
// e(err);
// }
// });
});
}

0 comments on commit 8dc4178

Please sign in to comment.