Skip to content

Commit 8e8e6f9

Browse files
authored
build(dev-deps): bump mocha to clear the audit (#1166)
1 parent 47667ed commit 8e8e6f9

File tree

4 files changed

+113
-135
lines changed

4 files changed

+113
-135
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@ jobs:
2121
- '18.17'
2222
- '16.20'
2323
- '14.16'
24-
- '12.22'
2524
os:
2625
- macos-latest
2726
- ubuntu-latest
2827
- windows-latest
2928
exclude:
3029
- os: windows-latest
3130
node-version: '14.16'
32-
- os: windows-latest
33-
node-version: '12.22'
3431
runs-on: "${{ matrix.os }}"
3532
env:
3633
GYP_MSVS_VERSION: '2022'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@types/chai-as-promised": "^7.1.3",
6767
"@types/debug": "^4.1.5",
6868
"@types/fs-extra": "^9.0.1",
69-
"@types/mocha": "^9.0.0",
69+
"@types/mocha": "^10.0.10",
7070
"@types/node": "^17.0.8",
7171
"@types/node-abi": "^3.0.0",
7272
"@types/semver": "^7.3.9",
@@ -80,7 +80,7 @@
8080
"electron": "^22.0.0",
8181
"eslint": "^7.7.0",
8282
"eslint-plugin-mocha": "^9.0.0",
83-
"mocha": "^9.0.1",
83+
"mocha": "^10.8.2",
8484
"nyc": "^15.1.0",
8585
"ts-node": "^10.0.0",
8686
"typescript": "^4.0.2"

test/helpers/module-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function resetTestModule(testModulePath: string, installModules = t
3939
}
4040

4141
export async function cleanupTestModule(testModulePath: string): Promise<void> {
42-
await fs.rmdir(testModulePath, { recursive: true, maxRetries: 10 });
42+
await fs.rm(testModulePath, { recursive: true, maxRetries: 10 });
4343
resetMSVSVersion();
4444
}
4545

0 commit comments

Comments
 (0)