VSCODE Exstention fix

This commit is contained in:
allexanderbergmns
2026-08-25 16:25:31 +02:00
parent 7ed774089e
commit b125721977
218 changed files with 5034 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
// index.js — mocha bootstrap, executed inside the VS Code extension host.
const path = require('path');
const Mocha = require('mocha');
async function run() {
const mocha = new Mocha({
ui: 'tdd',
timeout: 90000,
reporter: 'spec',
});
mocha.addFile(path.join(__dirname, 'extension.test.js'));
return new Promise((resolve, reject) => {
mocha.run((failures) => {
if (failures > 0) {
reject(new Error(`${failures} test(s) failed`));
} else {
resolve();
}
});
});
}
module.exports = { run };