Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 483257d

Browse files
fix: Remove CVE-2020-36632 vulnerability (#1366)
* Upgrade mocha and @types/mocha to latest version * update mocha configuration to execute unit tests * remove pending mocha.opts --------- Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
1 parent d0865a6 commit 483257d

27 files changed

Lines changed: 557 additions & 551 deletions

File tree

common/config/rush/pnpm-lock.yaml

Lines changed: 366 additions & 451 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chatdown/package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"latest-version": "^4.0.0",
1919
"mime-types": "^2.1.18",
2020
"minimist": "^1.2.6",
21-
"axios":"~0.24.0",
21+
"axios": "~0.24.0",
2222
"https-proxy-agent": "^5.0.0",
2323
"please-upgrade-node": "^3.0.1",
2424
"semver": "^5.5.1",
@@ -32,13 +32,13 @@
3232
"@oclif/tslint": "^3.1.1",
3333
"@types/chai": "^4.1.7",
3434
"@types/fs-extra": "^5.0.5",
35-
"@types/mocha": "^5.2.6",
35+
"@types/mocha": "^10.0.6",
3636
"@types/node": "^10.14.6",
3737
"@types/rimraf": "^2.0.2",
3838
"chai": "^4.2.0",
3939
"globby": "^8.0.2",
40-
"mocha": "^6.2.2",
4140
"nyc": "^15.1.0",
41+
"mocha": "^10.4.0",
4242
"rimraf": "^2.6.3",
4343
"ts-node": "^9.0.0",
4444
"tslint": "^5.16.0",
@@ -66,6 +66,18 @@
6666
"@oclif/plugin-help"
6767
]
6868
},
69+
"mocha": {
70+
"extension": [
71+
".test.js",
72+
".test.ts"
73+
],
74+
"recursive": true,
75+
"timeout": 10000,
76+
"require": [
77+
"../../test/hook.js",
78+
"source-map-support/register"
79+
]
80+
},
6981
"repository": "https://github.com/microsoft/botframework-cli/tree/master/packages/chatdown",
7082
"scripts": {
7183
"prepack": "npm run clean && npm run build && npm run doc:readme",

packages/chatdown/test/mocha.opts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cli/package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
"init": "./lib/hooks/init/inithook"
4141
}
4242
},
43+
"mocha": {
44+
"extension": [
45+
".test.js",
46+
".test.ts"
47+
],
48+
"recursive": true,
49+
"timeout": 60000,
50+
"require": [
51+
"../../test/hook.js",
52+
"source-map-support/register"
53+
]
54+
},
4355
"repository": "https://github.com/microsoft/botframework-cli/tree/master/packages/cli",
4456
"scripts": {
4557
"postinstall": "node scripts/postinstall.js",
@@ -71,7 +83,7 @@
7183
"chalk": "2.4.1",
7284
"cli-ux": "^5.3.0",
7385
"fs-extra": "^7.0.1",
74-
"is-ci":"2.0.0",
86+
"is-ci": "2.0.0",
7587
"latest-version": "^4.0.0",
7688
"semver": "^5.5.1",
7789
"tslib": "^2.0.3"
@@ -82,12 +94,12 @@
8294
"@oclif/tslint": "^3.1.1",
8395
"@types/chai": "^4.1.7",
8496
"@types/fs-extra": "^5.0.5",
85-
"@types/mocha": "^5.2.6",
97+
"@types/mocha": "^10.0.6",
8698
"@types/nock": "^11.1.0",
8799
"@types/node": "^10.14.6",
88100
"chai": "^4.2.0",
89101
"globby": "^8.0.2",
90-
"mocha": "^6.2.2",
102+
"mocha": "^10.4.0",
91103
"nock": "^11.7.0",
92104
"nyc": "^15.1.0",
93105
"rimraf": "^2.6.3",

packages/cli/test/mocha.opts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/command/package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
"keywords": [],
1414
"license": "MIT",
1515
"main": "lib/index.js",
16+
"mocha": {
17+
"extension": [
18+
".test.js",
19+
".test.ts"
20+
],
21+
"recursive": true,
22+
"timeout": 60000,
23+
"require": [
24+
"../../test/hook.js",
25+
"source-map-support/register"
26+
]
27+
},
1628
"repository": "https://github.com/microsoft/botframework-cli",
1729
"scripts": {
1830
"postpack": "",
@@ -46,15 +58,15 @@
4658
"@types/ansi-styles": "^3.2.1",
4759
"@types/chai": "^4.1.7",
4860
"@types/fs-extra": "^5.0.5",
49-
"@types/mocha": "^5.2.6",
61+
"@types/mocha": "^10.0.6",
5062
"@types/nock": "^9.3.1",
5163
"@types/node": "^11.13.7",
5264
"@types/proxyquire": "^1.3.28",
5365
"@types/sinon": "^7.0.11",
5466
"@types/supports-color": "^5.3.0",
5567
"chai": "^4.2.0",
5668
"fancy-test": "^1.4.3",
57-
"mocha": "^6.2.2",
69+
"mocha": "^10.4.0",
5870
"nock": "^11.7.0",
5971
"nyc": "^15.1.0",
6072
"proxyquire": "^2.1.0",

packages/command/test/mocha.opts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/config/package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
"@oclif/plugin-help"
2424
]
2525
},
26+
"mocha": {
27+
"extension": [
28+
".test.js",
29+
".test.ts"
30+
],
31+
"recursive": true,
32+
"timeout": 10000,
33+
"require": [
34+
"../../test/hook.js",
35+
"source-map-support/register"
36+
]
37+
},
2638
"repository": "https://github.com/microsoft/botframework-cli/tree/master/packages/config",
2739
"scripts": {
2840
"postpack": "rimraf oclif.manifest.json",
@@ -52,12 +64,12 @@
5264
"@oclif/test": "^1.2.4",
5365
"@oclif/tslint": "^3.1.1",
5466
"@types/chai": "^4.1.7",
55-
"@types/mocha": "^5.2.7",
67+
"@types/mocha": "^10.0.6",
5668
"@types/node": "^10.14.12",
5769
"chai": "^4.2.0",
5870
"globby": "^10.0.1",
59-
"mocha": "^6.2.2",
6071
"nyc": "^15.1.0",
72+
"mocha": "^10.4.0",
6173
"rimraf": "^2.6.3",
6274
"ts-node": "^9.0.0",
6375
"tslint": "^5.18.0",

packages/config/test/mocha.opts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/dialog/package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
"@oclif/plugin-help"
2525
]
2626
},
27+
"mocha": {
28+
"extension": [
29+
".test.js",
30+
".test.ts"
31+
],
32+
"recursive": true,
33+
"timeout": 60000,
34+
"slow": 10000,
35+
"require": [
36+
"../../test/hook.js",
37+
"source-map-support/register"
38+
]
39+
},
2740
"repository": "https://github.com/microsoft/botframework-cli/tree/master/packages/dialog",
2841
"scripts": {
2942
"postpack": "rimraf oclif.manifest.json",
@@ -69,11 +82,11 @@
6982
"@oclif/tslint": "^3.1.1",
7083
"@types/chai": "^4.2.0",
7184
"@types/fs-extra": "^8.0.0",
72-
"@types/mocha": "^5.2.7",
85+
"@types/mocha": "^10.0.6",
7386
"@types/node": "^10.14.15",
7487
"@types/seedrandom": "~2.4.28",
7588
"chai": "^4.2.0",
76-
"mocha": "^6.2.2",
89+
"mocha": "^10.4.0",
7790
"nock": "^13.0.11",
7891
"nyc": "^15.1.0",
7992
"rimraf": "^2.6.3",

0 commit comments

Comments
 (0)