Skip to content

Commit

Permalink
that should do it
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 29, 2024
1 parent 779e81c commit 9a4ce3a
Show file tree
Hide file tree
Showing 4 changed files with 604 additions and 93 deletions.
3 changes: 3 additions & 0 deletions vscode-extension/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ flake.lock
.direnv
.envrc
**/*.d.ts

fixture
out/test
4 changes: 2 additions & 2 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@types/vscode": "^1.94.0",
"@vscode/test-electron": "^2.2.0",
"mocha": "^10.1.0",
"typescript": "^4.7.4",
"vsce": "^2.10.0"
"typescript": "^5.6.3",
"@vscode/vsce": "^3.2.1"
}
}
8 changes: 2 additions & 6 deletions vscode-extension/src/test/suite/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(): Promise<void> {
// Create the mocha test
Expand All @@ -14,11 +14,7 @@ export function run(): Promise<void> {
const testsRoot = path.resolve(__dirname, "..");

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

glob("**/**.test.js", { cwd: testsRoot }).then((files) => {
// Add files to the test suite
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));

Expand Down
Loading

0 comments on commit 9a4ce3a

Please sign in to comment.