Skip to content

Commit

Permalink
Update mocha & nyc version (iTwin#1190)
Browse files Browse the repository at this point in the history
* Update Mocha & nyc version
* Update presentation barrel files to export all module contents
* Add nyc in certa

Co-authored-by: Grigas <[email protected]>
Co-authored-by: Caleb Shafer <[email protected]>
  • Loading branch information
3 people authored May 7, 2021
1 parent b5329b6 commit 2fb7ed7
Show file tree
Hide file tree
Showing 161 changed files with 4,657 additions and 3,000 deletions.
45 changes: 22 additions & 23 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@
],
"outFiles": [
"${workspaceFolder}/{core,clients}/*/lib/**/*.js",
"${workspaceFolder}/ui/abstract/lib/**/*.js"
"${workspaceFolder}/ui/abstract/lib/**/*.js",
"${workspaceFolder}/tools/certa/lib/**/*.js",
],
"outputCapture": "std",
"attachSimplePort": 5858, // NB: This must match ports.debugging in core/markup/certa.json
Expand Down Expand Up @@ -524,8 +525,8 @@
"request": "launch",
"program": "${workspaceFolder}/ui/abstract/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"./mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -547,8 +548,8 @@
"request": "launch",
"program": "${workspaceFolder}/ui/components/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -570,8 +571,8 @@
"request": "launch",
"program": "${workspaceFolder}/ui/core/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -589,8 +590,8 @@
"request": "launch",
"program": "${workspaceFolder}/ui/framework/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -609,8 +610,8 @@
"request": "launch",
"program": "${workspaceFolder}/ui/ninezone/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand Down Expand Up @@ -649,8 +650,8 @@
"request": "launch",
"program": "${workspaceFolder}/presentation/backend/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -668,8 +669,8 @@
"request": "launch",
"program": "${workspaceFolder}/presentation/common/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand All @@ -687,8 +688,8 @@
"request": "launch",
"program": "${workspaceFolder}/presentation/components/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"-r",
"ignore-styles",
Expand All @@ -710,8 +711,8 @@
"request": "launch",
"program": "${workspaceFolder}/presentation/frontend/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"../mocha.opts",
"--config",
"../.mocharc.json",
"--no-timeouts",
"-r",
"jsdom-global/register",
Expand All @@ -731,8 +732,6 @@
"request": "launch",
"program": "${workspaceFolder}/full-stack-tests/presentation/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"mocha.opts",
"-r",
"jsdom-global/register",
"-r",
Expand All @@ -757,8 +756,8 @@
"request": "launch",
"program": "${workspaceFolder}/presentation/testing/node_modules/mocha/bin/_mocha",
"args": [
"--opts",
"mocha.opts",
"--config",
".mocharc.json",
"--no-timeouts",
"lib/test/**/*.test.js"
],
Expand Down
10 changes: 3 additions & 7 deletions clients/backend-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,20 @@
"@bentley/eslint-plugin": "2.16.0-dev.27",
"@bentley/itwin-client": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 3 additions & 7 deletions clients/context-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,21 @@
"@bentley/oidc-signin-tool": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/deep-assign": "^0.1.0",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"internal-tools": "0.0.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("ContextRegistryClient (#integration)", () => {
let requestContext: AuthorizedClientRequestContext;

before(async function () {
this.enableTimeouts(false);
this.timeout(0);
requestContext = await TestConfig.getAuthorizedClientRequestContext();
});

Expand Down
10 changes: 3 additions & 7 deletions clients/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,21 @@
"@bentley/eslint-plugin": "2.16.0-dev.27",
"@bentley/oidc-signin-tool": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"internal-tools": "0.0.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 3 additions & 7 deletions clients/frontend-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,20 @@
"@bentley/eslint-plugin": "2.16.0-dev.27",
"@bentley/itwin-client": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 5 additions & 5 deletions clients/itwin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
"@types/chai": "^4.1.4",
"@types/deep-assign": "^0.1.0",
"@types/js-base64": "^2.3.1",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"@types/qs": "^6.5.0",
"@types/superagent": "^4.1.7",
"@types/xmldom": "^0.1.30",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"mocha": "^5.2.0",
"mocha": "^8.3.2",
"nock": "^12.0.3",
"nyc": "^14.0.0",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
Expand All @@ -69,12 +69,12 @@
"xpath": "0.0.27"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
"extends": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 3 additions & 7 deletions clients/product-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,21 @@
"@bentley/oidc-signin-tool": "2.16.0-dev.27",
"@bentley/rbac-client": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"internal-tools": "0.0.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 3 additions & 7 deletions clients/projectshare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,21 @@
"@bentley/itwin-client": "2.16.0-dev.27",
"@bentley/oidc-signin-tool": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"internal-tools": "0.0.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
10 changes: 3 additions & 7 deletions clients/rbac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,21 @@
"@bentley/itwin-client": "2.16.0-dev.27",
"@bentley/oidc-signin-tool": "2.16.0-dev.27",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/mocha": "^8.2.2",
"@types/node": "10.14.1",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"internal-tools": "0.0.0",
"mocha": "^5.2.0",
"nyc": "^14.0.0",
"mocha": "^8.3.2",
"rimraf": "^3.0.2",
"source-map-loader": "^1.0.0",
"typescript": "~4.1.0",
"webpack": "4.42.0"
},
"nyc": {
"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"plugins": [
"@bentley"
],
"extends": "plugin:@bentley/imodeljs-recommended"
}
}
}
2 changes: 1 addition & 1 deletion clients/rbac/src/test/integration/RbacClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("RbacClient (#integration)", () => {
let requestContext: AuthorizedClientRequestContext;

before(async function () {
this.enableTimeouts(false);
this.timeout(0);
requestContext = await TestConfig.getAuthorizedClientRequestContext(TestUsers.super);
});

Expand Down
Loading

0 comments on commit 2fb7ed7

Please sign in to comment.