diff --git a/package-lock.json b/package-lock.json index b20eb68..66b00eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,8 +18,8 @@ "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.1", "@types/antlr4": "^4.7.2", - "@types/chai": "^4.3.8", - "@types/chai-spies": "^1.0.4", + "@types/chai": "^4.3.19", + "@types/chai-spies": "^1.0.6", "@types/fs-extra": "^11.0.4", "@types/glob": "^8.1.0", "@types/mocha": "^10.0.7", @@ -29,8 +29,8 @@ "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", "@vscode/test-electron": "^2.4.1", - "chai": "^4.3.10", - "chai-spies": "^1.0.0", + "chai": "^4.5.0", + "chai-spies": "^1.1.0", "eslint": "^9.9.1", "eslint-config-prettier": "^9.1.0", "fs-extra": "^11.2.0", @@ -314,16 +314,18 @@ "dev": true }, "node_modules/@types/chai": { - "version": "4.3.8", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.8.tgz", - "integrity": "sha512-yW/qTM4mRBBcsA9Xw9FbcImYtFPY7sgr+G/O5RDYVmxiy9a+pE5FyoFUi8JYCZY5nicj8atrr1pcfPiYpeNGOA==", - "dev": true + "version": "4.3.19", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.19.tgz", + "integrity": "sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/chai-spies": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/chai-spies/-/chai-spies-1.0.4.tgz", - "integrity": "sha512-HCG1EUGpVYmmqIG9rnSIxkng/tOzARG1HmUIV5miCp55ykqxSnVj2vlXaf6nDwaMm7qzkvNe9SHW15ywPKDqTA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/chai-spies/-/chai-spies-1.0.6.tgz", + "integrity": "sha512-xkk4HmhBB9OQeTAifa9MJ+6R5/Rq9+ungDe4JidZD+vqZVeiWZwc2i7/pd1ZKjyGlSBIQePoWdyUyFUGT0rv5w==", "dev": true, + "license": "MIT", "dependencies": { "@types/chai": "*" } @@ -892,10 +894,11 @@ } }, "node_modules/chai": { - "version": "4.3.10", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz", - "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", + "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", "dev": true, + "license": "MIT", "dependencies": { "assertion-error": "^1.1.0", "check-error": "^1.0.3", @@ -903,17 +906,18 @@ "get-func-name": "^2.0.2", "loupe": "^2.3.6", "pathval": "^1.1.1", - "type-detect": "^4.0.8" + "type-detect": "^4.1.0" }, "engines": { "node": ">=4" } }, "node_modules/chai-spies": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/chai-spies/-/chai-spies-1.0.0.tgz", - "integrity": "sha512-elF2ZUczBsFoP07qCfMO/zeggs8pqCf3fZGyK5+2X4AndS8jycZYID91ztD9oQ7d/0tnS963dPkd0frQEThDsg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chai-spies/-/chai-spies-1.1.0.tgz", + "integrity": "sha512-ikaUhQvQWchRYj2K54itFp3nrcxaFRpSDQxDlRzSn9aWgu9Pi7lD8yFxTso4WnQ39+WZ69oB/qOvqp+isJIIWA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4.0.0" }, @@ -2927,10 +2931,11 @@ } }, "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", + "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3296,15 +3301,15 @@ "dev": true }, "@types/chai": { - "version": "4.3.8", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.8.tgz", - "integrity": "sha512-yW/qTM4mRBBcsA9Xw9FbcImYtFPY7sgr+G/O5RDYVmxiy9a+pE5FyoFUi8JYCZY5nicj8atrr1pcfPiYpeNGOA==", + "version": "4.3.19", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.19.tgz", + "integrity": "sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==", "dev": true }, "@types/chai-spies": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/chai-spies/-/chai-spies-1.0.4.tgz", - "integrity": "sha512-HCG1EUGpVYmmqIG9rnSIxkng/tOzARG1HmUIV5miCp55ykqxSnVj2vlXaf6nDwaMm7qzkvNe9SHW15ywPKDqTA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/chai-spies/-/chai-spies-1.0.6.tgz", + "integrity": "sha512-xkk4HmhBB9OQeTAifa9MJ+6R5/Rq9+ungDe4JidZD+vqZVeiWZwc2i7/pd1ZKjyGlSBIQePoWdyUyFUGT0rv5w==", "dev": true, "requires": { "@types/chai": "*" @@ -3688,9 +3693,9 @@ "dev": true }, "chai": { - "version": "4.3.10", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz", - "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", + "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", "dev": true, "requires": { "assertion-error": "^1.1.0", @@ -3699,13 +3704,13 @@ "get-func-name": "^2.0.2", "loupe": "^2.3.6", "pathval": "^1.1.1", - "type-detect": "^4.0.8" + "type-detect": "^4.1.0" } }, "chai-spies": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/chai-spies/-/chai-spies-1.0.0.tgz", - "integrity": "sha512-elF2ZUczBsFoP07qCfMO/zeggs8pqCf3fZGyK5+2X4AndS8jycZYID91ztD9oQ7d/0tnS963dPkd0frQEThDsg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chai-spies/-/chai-spies-1.1.0.tgz", + "integrity": "sha512-ikaUhQvQWchRYj2K54itFp3nrcxaFRpSDQxDlRzSn9aWgu9Pi7lD8yFxTso4WnQ39+WZ69oB/qOvqp+isJIIWA==", "dev": true, "requires": {} }, @@ -5123,9 +5128,9 @@ } }, "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", + "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", "dev": true }, "typescript": { diff --git a/package.json b/package.json index b6634d3..8580d1c 100644 --- a/package.json +++ b/package.json @@ -117,8 +117,8 @@ "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.1", "@types/antlr4": "^4.7.2", - "@types/chai": "^4.3.8", - "@types/chai-spies": "^1.0.4", + "@types/chai": "^4.3.19", + "@types/chai-spies": "^1.0.6", "@types/fs-extra": "^11.0.4", "@types/glob": "^8.1.0", "@types/mocha": "^10.0.7", @@ -128,8 +128,8 @@ "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", "@vscode/test-electron": "^2.4.1", - "chai": "^4.3.10", - "chai-spies": "^1.0.0", + "chai": "^4.5.0", + "chai-spies": "^1.1.0", "eslint": "^9.9.1", "eslint-config-prettier": "^9.1.0", "fs-extra": "^11.2.0", diff --git a/src/test/suite/FshCompletionProvider.test.ts b/src/test/suite/FshCompletionProvider.test.ts index 4580095..920a21f 100644 --- a/src/test/suite/FshCompletionProvider.test.ts +++ b/src/test/suite/FshCompletionProvider.test.ts @@ -13,7 +13,8 @@ import { import { FshDefinitionProvider } from '../../FshDefinitionProvider'; chai.use(spies); -const { assert, expect } = chai; +const { expect } = chai; +const assert: Chai.AssertStatic = chai.assert; const { EOL } = os; // Since the tests actually run from the build output directory, diff --git a/src/test/suite/FshDefinitionProvider.test.ts b/src/test/suite/FshDefinitionProvider.test.ts index bafbcdf..8a16c9e 100644 --- a/src/test/suite/FshDefinitionProvider.test.ts +++ b/src/test/suite/FshDefinitionProvider.test.ts @@ -8,7 +8,8 @@ import * as parser from '../../parser'; import { FshDefinitionProvider, NameInfo } from '../../FshDefinitionProvider'; chai.use(spies); -const { assert, expect } = chai; +const { expect } = chai; +const assert: Chai.AssertStatic = chai.assert; suite('FshDefinitionProvider', () => { let extension: vscode.Extension; diff --git a/src/test/suite/SushiBuildTaskProvider.test.ts b/src/test/suite/SushiBuildTaskProvider.test.ts index 178e766..7bfb13e 100644 --- a/src/test/suite/SushiBuildTaskProvider.test.ts +++ b/src/test/suite/SushiBuildTaskProvider.test.ts @@ -2,7 +2,7 @@ import chai from 'chai'; import * as vscode from 'vscode'; import { getSushiBuildTask } from '../../SushiBuildTaskProvider'; -const { assert } = chai; +const assert: Chai.AssertStatic = chai.assert; suite('SushiBuildTaskProvider', () => { suite('getSushiBuildTask', () => {