Skip to content

Commit

Permalink
bump more deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Mar 20, 2024
1 parent 3601951 commit 84cc300
Show file tree
Hide file tree
Showing 8 changed files with 327 additions and 3,594 deletions.
3,812 changes: 276 additions & 3,536 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -606,24 +606,22 @@
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@types/shelljs": "^0.8.0",
"@types/vscode": "~1.85.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vscode/debugprotocol": "^1.65.0",
"@vscode/test-electron": "^2.3.0",
"esbuild": "^0.20.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"glob": "^8.0.0",
"glob": "^10.0.0",
"mocha": "^10.0.0",
"npm-run-all": "^4.0.0",
"prettier": "^3.0.0",
"rimraf": "^5.0.0",
"typescript": "~5.4.2"
"typescript": "~5.4.0"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.9.0",
Expand Down
14 changes: 7 additions & 7 deletions src/test-fixtures/multi_root.code-workspace
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"folders": [
{
"path": "sample_umbrella"
"path": "sample_umbrella",
},
{
"path": "sample_umbrella/apps/child1"
"path": "sample_umbrella/apps/child1",
},
{
"path": "single_folder_no_mix"
"path": "single_folder_no_mix",
},
{
"path": "containing_folder"
"path": "containing_folder",
},
{
"path": "containing_folder/single_folder_mix"
}
"path": "containing_folder/single_folder_mix",
},
],
"settings": {}
"settings": {},
}
17 changes: 8 additions & 9 deletions src/test/multiRoot/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(
export async function run(
testsRoot: string,
cb: (error: unknown, failures?: number) => void
): void {
) {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});

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

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

Expand All @@ -28,5 +25,7 @@ export function run(
} catch (err) {
cb(err);
}
});
} catch (globError) {
cb(globError);
}
}
17 changes: 8 additions & 9 deletions src/test/noWorkspace/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(
export async function run(
testsRoot: string,
cb: (error: unknown, failures?: number) => void
): void {
) {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});

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

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

Expand All @@ -28,5 +25,7 @@ export function run(
} catch (err) {
cb(err);
}
});
} catch (globError) {
cb(globError);
}
}
17 changes: 8 additions & 9 deletions src/test/noWorkspaceElixirFile/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(
export async function run(
testsRoot: string,
cb: (error: unknown, failures?: number) => void
): void {
) {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});

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

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

Expand All @@ -28,5 +25,7 @@ export function run(
} catch (err) {
cb(err);
}
});
} catch (globError) {
cb(globError);
}
}
17 changes: 8 additions & 9 deletions src/test/singleFolderMix/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(
export async function run(
testsRoot: string,
cb: (error: unknown, failures?: number) => void
): void {
) {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});

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

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

Expand All @@ -28,5 +25,7 @@ export function run(
} catch (err) {
cb(err);
}
});
} catch (globError) {
cb(globError);
}
}
17 changes: 8 additions & 9 deletions src/test/singleFolderNoMix/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(
export async function run(
testsRoot: string,
cb: (error: unknown, failures?: number) => void
): void {
) {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});

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

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

Expand All @@ -28,5 +25,7 @@ export function run(
} catch (err) {
cb(err);
}
});
} catch (globError) {
cb(globError);
}
}

0 comments on commit 84cc300

Please sign in to comment.