misc: upgrade dependencies

This commit is contained in:
Grégoire Geis 2022-05-14 12:10:29 +02:00
parent bea5c502ed
commit 12c78774fa
4 changed files with 531 additions and 633 deletions

View File

@ -119,26 +119,26 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
},
devDependencies: {
"@types/glob": "^7.1.1",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.33",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"@vscode/test-electron": "^2.1.3",
"chokidar": "^3.5.1",
"dependency-cruiser": "^10.0.5",
"eslint": "^7.22.0",
"glob": "^7.1.6",
"mocha": "^8.1.1",
"source-map-support": "^0.5.19",
"ts-loader": "^9.2.5",
"ts-node": "^9.1.1",
"typescript": "^4.5.5",
"unexpected": "^12.0.0",
"chokidar": "^3.5.3",
"dependency-cruiser": "^11.7.0",
"eslint": "^8.15.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"source-map-support": "^0.5.21",
"ts-loader": "^9.3.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"unexpected": "^13.0.0",
"vsce": "^2.7.0",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
},
// VS Code-specific properties.

34
package.json generated
View File

@ -31,26 +31,26 @@
"publish": "vsce publish --allow-star-activation"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.33",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"@vscode/test-electron": "^2.1.3",
"chokidar": "^3.5.1",
"dependency-cruiser": "^10.0.5",
"eslint": "^7.22.0",
"glob": "^7.1.6",
"mocha": "^8.1.1",
"source-map-support": "^0.5.19",
"ts-loader": "^9.2.5",
"ts-node": "^9.1.1",
"typescript": "^4.5.5",
"unexpected": "^12.0.0",
"chokidar": "^3.5.3",
"dependency-cruiser": "^11.7.0",
"eslint": "^8.15.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"source-map-support": "^0.5.21",
"ts-loader": "^9.3.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"unexpected": "^13.0.0",
"vsce": "^2.7.0",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0"
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
},
"displayName": "Dance",
"publisher": "gregoire",

View File

@ -29,7 +29,8 @@ interface Expect<T = any> {
identify: (value: unknown) => boolean;
base?: string;
inspect?: (value: T, depth: number, output: Expect.Output, inspect: Expect.Inspect) => any;
inspect?(value: T, depth: number, output: Expect.Output, inspect: Expect.Inspect): any;
equal?(a: T, b: T, equal: (a: any, b: any) => boolean): boolean;
}): void;
}
@ -134,12 +135,15 @@ expect.addType<vscode.Position>({
identify: (v) => v instanceof vscode.Position,
base: "object",
inspect: (value, _, output) => {
inspect(value, _, output) {
output
.text("Position(")
.text(shortPos(value))
.text(")");
},
equal(a, b) {
return a.isEqual(b);
},
});
expect.addType<vscode.Range>({
@ -147,7 +151,7 @@ expect.addType<vscode.Range>({
identify: (v) => v instanceof vscode.Range,
base: "object",
inspect: (value, _, output) => {
inspect(value, _, output) {
output
.text("Range(")
.text(shortPos(value.start))
@ -155,6 +159,9 @@ expect.addType<vscode.Range>({
.text(shortPos(value.end))
.text(")");
},
equal(a, b) {
return a.isEqual(b);
},
});
expect.addType<vscode.Selection>({
@ -162,7 +169,7 @@ expect.addType<vscode.Selection>({
identify: (v) => v instanceof vscode.Selection,
base: "range",
inspect: (value, _, output) => {
inspect(value, _, output) {
output
.text("Selection(")
.text(shortPos(value.anchor))
@ -170,6 +177,9 @@ expect.addType<vscode.Selection>({
.text(shortPos(value.active))
.text(")");
},
equal(a, b) {
return a.isEqual(b);
},
});
expect.addAssertion<vscode.Position>(
@ -197,14 +207,14 @@ expect.addAssertion<vscode.Range>(
expect.addAssertion<vscode.Range>(
"<range> [not] to start at <position>",
(expect, subject, position: vscode.Position) => {
expect(subject, "[not] to satisfy", { start: position });
expect(subject, "[not] to satisfy", { start: expect.it("to equal", position) });
},
);
expect.addAssertion<vscode.Range>(
"<range> [not] to end at <position>",
(expect, subject, position: vscode.Position) => {
expect(subject, "[not] to satisfy", { end: position });
expect(subject, "[not] to satisfy", { end: expect.it("to equal", position) });
},
);
@ -232,14 +242,14 @@ expect.addAssertion<vscode.Selection>(
expect.addAssertion<vscode.Selection>(
"<selection> [not] to (have anchor|be anchored) at <position>",
(expect, subject, position: vscode.Position) => {
expect(subject, "[not] to satisfy", { anchor: position });
expect(subject, "[not] to satisfy", { anchor: expect.it("to equal", position) });
},
);
expect.addAssertion<vscode.Selection>(
"<selection> [not] to (have cursor|be active) at <position>",
(expect, subject, position: vscode.Position) => {
expect(subject, "[not] to satisfy", { active: position });
expect(subject, "[not] to satisfy", { active: expect.it("to equal", position) });
},
);

1070
yarn.lock

File diff suppressed because it is too large Load Diff