diff --git a/clients/imodelhub/package.json b/clients/imodelhub/package.json index fba80043004a..798e58c4c5aa 100644 --- a/clients/imodelhub/package.json +++ b/clients/imodelhub/package.json @@ -74,7 +74,7 @@ "chai": "^4.1.2", "eslint": "^7.11.0", "fs-extra": "^8.1.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nock": "^12.0.3", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/common/changes/@bentley/imodelbank-client/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@bentley/imodelbank-client/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..8fb72e1c0b44 --- /dev/null +++ b/common/changes/@bentley/imodelbank-client/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@bentley/imodelbank-client", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@bentley/imodelbank-client" +} \ No newline at end of file diff --git a/common/changes/@itwin/analytical-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/analytical-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..a9106e068378 --- /dev/null +++ b/common/changes/@itwin/analytical-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/analytical-backend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/analytical-backend" +} \ No newline at end of file diff --git a/common/changes/@itwin/appui-abstract/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/appui-abstract/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..df7b69c28efe --- /dev/null +++ b/common/changes/@itwin/appui-abstract/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/appui-abstract", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/appui-abstract" +} \ No newline at end of file diff --git a/common/changes/@itwin/appui-layout-react/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/appui-layout-react/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..200d5549522c --- /dev/null +++ b/common/changes/@itwin/appui-layout-react/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/appui-layout-react", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/appui-layout-react" +} \ No newline at end of file diff --git a/common/changes/@itwin/appui-react/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/appui-react/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..d1602ba3d8d3 --- /dev/null +++ b/common/changes/@itwin/appui-react/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/appui-react", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/appui-react" +} \ No newline at end of file diff --git a/common/changes/@itwin/build-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/build-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..bcb0698bda38 --- /dev/null +++ b/common/changes/@itwin/build-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/build-tools", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/build-tools" +} \ No newline at end of file diff --git a/common/changes/@itwin/certa/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/certa/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..8a091cb1a817 --- /dev/null +++ b/common/changes/@itwin/certa/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/certa", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/certa" +} \ No newline at end of file diff --git a/common/changes/@itwin/components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..0f416281e969 --- /dev/null +++ b/common/changes/@itwin/components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/components-react", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/components-react" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..a9c4cedc51b5 --- /dev/null +++ b/common/changes/@itwin/core-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-backend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-backend" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-bentley/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-bentley/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..54bf83ebe6aa --- /dev/null +++ b/common/changes/@itwin/core-bentley/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-bentley", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-bentley" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-common/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-common/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..1a78a9fbd5a0 --- /dev/null +++ b/common/changes/@itwin/core-common/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-common", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-common" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..230bd9d48093 --- /dev/null +++ b/common/changes/@itwin/core-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-frontend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-frontend" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-geometry/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-geometry/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..d570519bde80 --- /dev/null +++ b/common/changes/@itwin/core-geometry/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-geometry", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-geometry" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-markup/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-markup/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..82450c4d9932 --- /dev/null +++ b/common/changes/@itwin/core-markup/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-markup", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-markup" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-mobile/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-mobile/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..a0f896dfdecf --- /dev/null +++ b/common/changes/@itwin/core-mobile/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-mobile", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-mobile" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-orbitgt/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-orbitgt/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..78d7a59e1a1a --- /dev/null +++ b/common/changes/@itwin/core-orbitgt/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-orbitgt", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-orbitgt" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-quantity/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-quantity/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..dd09af381e0d --- /dev/null +++ b/common/changes/@itwin/core-quantity/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-quantity", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-quantity" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-react/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-react/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..71b8a2673258 --- /dev/null +++ b/common/changes/@itwin/core-react/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-react", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-react" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-telemetry/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-telemetry/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..012b18e9dc79 --- /dev/null +++ b/common/changes/@itwin/core-telemetry/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-telemetry", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-telemetry" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-transformer/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-transformer/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..b4fb37cf4976 --- /dev/null +++ b/common/changes/@itwin/core-transformer/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-transformer", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-transformer" +} \ No newline at end of file diff --git a/common/changes/@itwin/core-webpack-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/core-webpack-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..96ee24e035e1 --- /dev/null +++ b/common/changes/@itwin/core-webpack-tools/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-webpack-tools", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/core-webpack-tools" +} \ No newline at end of file diff --git a/common/changes/@itwin/ecschema-editing/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/ecschema-editing/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..7c8051378859 --- /dev/null +++ b/common/changes/@itwin/ecschema-editing/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/ecschema-editing", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/ecschema-editing" +} \ No newline at end of file diff --git a/common/changes/@itwin/ecschema-locaters/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/ecschema-locaters/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..09c3b8d8fd67 --- /dev/null +++ b/common/changes/@itwin/ecschema-locaters/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/ecschema-locaters", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/ecschema-locaters" +} \ No newline at end of file diff --git a/common/changes/@itwin/ecschema-metadata/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/ecschema-metadata/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..6964c32ab379 --- /dev/null +++ b/common/changes/@itwin/ecschema-metadata/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/ecschema-metadata", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/ecschema-metadata" +} \ No newline at end of file diff --git a/common/changes/@itwin/ecschema-rpcinterface-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/ecschema-rpcinterface-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..1a47f0db938f --- /dev/null +++ b/common/changes/@itwin/ecschema-rpcinterface-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/ecschema-rpcinterface-tests", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/ecschema-rpcinterface-tests" +} \ No newline at end of file diff --git a/common/changes/@itwin/ecschema2ts/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/ecschema2ts/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..d5644ee871eb --- /dev/null +++ b/common/changes/@itwin/ecschema2ts/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/ecschema2ts", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/ecschema2ts" +} \ No newline at end of file diff --git a/common/changes/@itwin/editor-common/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/editor-common/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..29bb1b5ab93b --- /dev/null +++ b/common/changes/@itwin/editor-common/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/editor-common", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/editor-common" +} \ No newline at end of file diff --git a/common/changes/@itwin/eslint-plugin/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/eslint-plugin/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..665c8465b2c7 --- /dev/null +++ b/common/changes/@itwin/eslint-plugin/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/eslint-plugin", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/eslint-plugin" +} \ No newline at end of file diff --git a/common/changes/@itwin/express-server/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/express-server/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..eb0177ca1358 --- /dev/null +++ b/common/changes/@itwin/express-server/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/express-server", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/express-server" +} \ No newline at end of file diff --git a/common/changes/@itwin/hypermodeling-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/hypermodeling-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..c9fb761a9189 --- /dev/null +++ b/common/changes/@itwin/hypermodeling-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/hypermodeling-frontend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/hypermodeling-frontend" +} \ No newline at end of file diff --git a/common/changes/@itwin/imodel-components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/imodel-components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..5a246ed2bf5d --- /dev/null +++ b/common/changes/@itwin/imodel-components-react/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/imodel-components-react", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/imodel-components-react" +} \ No newline at end of file diff --git a/common/changes/@itwin/linear-referencing-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/linear-referencing-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..d50a40a0b398 --- /dev/null +++ b/common/changes/@itwin/linear-referencing-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/linear-referencing-backend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/linear-referencing-backend" +} \ No newline at end of file diff --git a/common/changes/@itwin/linear-referencing-common/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/linear-referencing-common/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..5432def324f2 --- /dev/null +++ b/common/changes/@itwin/linear-referencing-common/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/linear-referencing-common", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/linear-referencing-common" +} \ No newline at end of file diff --git a/common/changes/@itwin/map-layers-auth/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/map-layers-auth/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..697e4056ca74 --- /dev/null +++ b/common/changes/@itwin/map-layers-auth/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/map-layers-auth", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/map-layers-auth" +} \ No newline at end of file diff --git a/common/changes/@itwin/map-layers/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/map-layers/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..78ec5f990572 --- /dev/null +++ b/common/changes/@itwin/map-layers/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/map-layers", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/map-layers" +} \ No newline at end of file diff --git a/common/changes/@itwin/physical-material-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/physical-material-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..6ee1913dc117 --- /dev/null +++ b/common/changes/@itwin/physical-material-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/physical-material-backend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/physical-material-backend" +} \ No newline at end of file diff --git a/common/changes/@itwin/presentation-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/presentation-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..9347494578cf --- /dev/null +++ b/common/changes/@itwin/presentation-backend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/presentation-backend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/presentation-backend" +} \ No newline at end of file diff --git a/common/changes/@itwin/presentation-common/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/presentation-common/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..0aae6e59b5d4 --- /dev/null +++ b/common/changes/@itwin/presentation-common/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/presentation-common", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/presentation-common" +} \ No newline at end of file diff --git a/common/changes/@itwin/presentation-components/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/presentation-components/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..0367ea9dcaf9 --- /dev/null +++ b/common/changes/@itwin/presentation-components/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/presentation-components", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/presentation-components" +} \ No newline at end of file diff --git a/common/changes/@itwin/presentation-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/presentation-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..95ab22d4ca7b --- /dev/null +++ b/common/changes/@itwin/presentation-frontend/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/presentation-frontend", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/presentation-frontend" +} \ No newline at end of file diff --git a/common/changes/@itwin/presentation-testing/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/presentation-testing/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..1f3f0facaa20 --- /dev/null +++ b/common/changes/@itwin/presentation-testing/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/presentation-testing", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/presentation-testing" +} \ No newline at end of file diff --git a/common/changes/@itwin/rpcinterface-full-stack-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/rpcinterface-full-stack-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..23e7a44f9034 --- /dev/null +++ b/common/changes/@itwin/rpcinterface-full-stack-tests/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/rpcinterface-full-stack-tests", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/rpcinterface-full-stack-tests" +} \ No newline at end of file diff --git a/common/changes/@itwin/webgl-compatibility/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/webgl-compatibility/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..fe337d4c7a8f --- /dev/null +++ b/common/changes/@itwin/webgl-compatibility/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/webgl-compatibility", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/webgl-compatibility" +} \ No newline at end of file diff --git a/common/changes/@itwin/workspace-editor/as-upgrade-mocha-latest_2022-05-20-18-17.json b/common/changes/@itwin/workspace-editor/as-upgrade-mocha-latest_2022-05-20-18-17.json new file mode 100644 index 000000000000..31fa56915a11 --- /dev/null +++ b/common/changes/@itwin/workspace-editor/as-upgrade-mocha-latest_2022-05-20-18-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/workspace-editor", + "comment": "upgrade mocha to version 10.0.0", + "type": "none" + } + ], + "packageName": "@itwin/workspace-editor" +} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index bdf82e2728b7..adf4ede0b4db 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -36,7 +36,7 @@ importers: got: ~11.8.2 js-base64: ^3.6.1 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 nock: ^12.0.3 proper-lockfile: ^4.1.2 qs: ^6.5.1 @@ -80,7 +80,7 @@ importers: chai: 4.3.6 eslint: 7.32.0 fs-extra: 8.1.0 - mocha: 8.4.0 + mocha: 10.0.0 nock: 12.0.3 rimraf: 3.0.2 sinon: 9.2.4 @@ -118,7 +118,7 @@ importers: internal-tools: workspace:* js-base64: ^3.6.1 json5: ^2.2.0 - mocha: ^8.3.2 + mocha: ^10.0.0 multiparty: ^4.2.1 null-loader: ^0.1.1 nyc: ^15.1.0 @@ -164,7 +164,7 @@ importers: dotenv-expand: 5.1.0 eslint: 7.32.0 internal-tools: link:../../tools/internal - mocha: 8.4.0 + mocha: 10.0.0 null-loader: 0.1.1 nyc: 15.1.0 rimraf: 3.0.2 @@ -184,7 +184,7 @@ importers: chai: ^4.1.2 chai-as-promised: ^7 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 typescript: ~4.4.0 @@ -198,7 +198,7 @@ importers: chai: 4.3.6 chai-as-promised: 7.1.1_chai@4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -219,7 +219,7 @@ importers: eslint: ^7.11.0 flatbuffers: ~1.12.0 js-base64: ^3.6.1 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 semver: ^5.5.0 @@ -243,7 +243,7 @@ importers: '@types/semver': 5.5.0 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -270,7 +270,7 @@ importers: chai-as-promised: ^7 cpx2: ^3.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -296,7 +296,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -319,7 +319,7 @@ importers: cpx2: ^3.0.0 eslint: ^7.11.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 typescript: ~4.4.0 @@ -340,7 +340,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -366,7 +366,7 @@ importers: chai-as-promised: ^7 cpx2: ^3.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -392,7 +392,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -499,7 +499,7 @@ importers: eslint: ^7.11.0 express: ^4.16.3 express-ws: ^5.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -523,7 +523,7 @@ importers: '@types/supertest': 2.0.12 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -581,7 +581,7 @@ importers: fuse.js: ^3.3.0 glob: ^7.1.2 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 qs: ^6.5.1 rimraf: ^3.0.2 @@ -632,7 +632,7 @@ importers: cpx2: 3.0.2 eslint: 7.32.0 glob: 7.2.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -684,7 +684,7 @@ importers: debug: ^2.6.9 eslint: ^7.11.0 flatbuffers: ~1.12.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 semver: ^5.5.0 @@ -702,7 +702,7 @@ importers: chai: 4.3.6 debug: 2.6.9 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 semver: 5.7.1 @@ -725,7 +725,7 @@ importers: cpx2: ^3.0.0 eslint: ^7.11.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 source-map-loader: ^1.0.0 @@ -748,7 +748,7 @@ importers: cpx2: 3.0.2 eslint: 7.32.0 glob: 7.2.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 source-map-loader: 1.1.3_webpack@4.42.0 @@ -805,7 +805,7 @@ importers: cpx2: ^3.0.0 eslint: ^7.11.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 source-map-loader: ^1.0.0 @@ -828,7 +828,7 @@ importers: cpx2: 3.0.2 eslint: 7.32.0 glob: 7.2.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 source-map-loader: 1.1.3_webpack@4.42.0 @@ -861,7 +861,7 @@ importers: eslint: ^7.11.0 js-base64: ^3.6.1 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 qs: ^6.5.1 rimraf: ^3.0.2 superagent: ^7.0.1 @@ -896,7 +896,7 @@ importers: dotenv: 10.0.0 dotenv-expand: 5.1.0 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -912,7 +912,7 @@ importers: cpx2: ^3.0.0 debug: ^2.6.9 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 semver: ^5.5.0 @@ -928,7 +928,7 @@ importers: cpx2: 3.0.2 debug: 2.6.9 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 semver: 5.7.1 @@ -948,7 +948,7 @@ importers: chai: ^4.1.2 chai-as-promised: ^7 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -966,7 +966,7 @@ importers: chai: 4.3.6 chai-as-promised: 7.1.1_chai@4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -984,7 +984,7 @@ importers: '@types/node': 14.14.31 chai: ^4.1.2 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 source-map-loader: ^1.0.0 typescript: ~4.4.0 @@ -1001,7 +1001,7 @@ importers: '@types/node': 14.14.31 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 source-map-loader: 1.1.3_webpack@4.42.0 typescript: 4.4.4 @@ -1026,7 +1026,7 @@ importers: chai-as-promised: ^7 cpx2: ^3.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 npm-run-all: ^4.1.5 nyc: ^15.1.0 rimraf: ^3.0.2 @@ -1053,7 +1053,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 npm-run-all: 4.1.5 nyc: 15.1.0 rimraf: 3.0.2 @@ -1072,7 +1072,7 @@ importers: chai: ^4.1.2 eslint: ^7.11.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 source-map-loader: ^1.0.0 typescript: ~4.4.0 @@ -1089,7 +1089,7 @@ importers: chai: 4.3.6 eslint: 7.32.0 glob: 7.2.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 source-map-loader: 1.1.3_webpack@4.42.0 typescript: 4.4.4 @@ -1110,7 +1110,7 @@ importers: chai: ^4.1.2 cpx2: ^3.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 semver: ^5.5.0 @@ -1131,7 +1131,7 @@ importers: chai: 4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1151,7 +1151,7 @@ importers: chai: ^4.1.2 cpx2: ^3.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 typescript: ~4.4.0 @@ -1169,7 +1169,7 @@ importers: chai: 4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1185,7 +1185,7 @@ importers: '@types/mocha': ^8.2.2 chai: ^4.1.2 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 typescript: ~4.4.0 @@ -1199,7 +1199,7 @@ importers: '@types/mocha': 8.2.3 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1217,7 +1217,7 @@ importers: '@types/node': 14.14.31 chai: ^4.1.2 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 typescript: ~4.4.0 @@ -1233,7 +1233,7 @@ importers: '@types/node': 14.14.31 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1276,7 +1276,7 @@ importers: '@types/semver': ^5.5.0 chai: ^4.1.2 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 devDependencies: @@ -1291,7 +1291,7 @@ importers: '@types/semver': 5.5.0 chai: 4.3.6 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1344,7 +1344,7 @@ importers: cpx2: ^3.0.0 electron: ^14.0.0 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 dependencies: @@ -1365,7 +1365,7 @@ importers: chai: 4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1392,7 +1392,7 @@ importers: cpx2: ^3.0.0 eslint: ^7.11.0 fs-extra: ^8.1.0 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 dependencies: @@ -1418,7 +1418,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -1489,7 +1489,7 @@ importers: eslint: ^7.11.0 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 react: ^17.0.0 react-beautiful-dnd: ^13.0.0 @@ -1540,7 +1540,7 @@ importers: eslint: 7.32.0 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 react: 17.0.2 react-dom: 17.0.2_react@17.0.2 @@ -1577,7 +1577,7 @@ importers: eslint: ^7.11.0 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 react: ^17.0.0 react-dom: ^17.0.0 @@ -1616,7 +1616,7 @@ importers: eslint: 7.32.0 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -1695,7 +1695,7 @@ importers: fs-extra: ^8.1.0 internal-tools: workspace:* mkdirp: ^1.0.4 - mocha: ^8.3.2 + mocha: ^10.0.0 npm-run-all: ^4.1.5 nyc: ^15.1.0 rimraf: ^3.0.2 @@ -1738,7 +1738,7 @@ importers: dotenv-expand: 5.1.0 eslint: 7.32.0 fs-extra: 8.1.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 devDependencies: @@ -1897,7 +1897,7 @@ importers: dotenv-expand: ^5.1.0 eslint: ^7.11.0 internal-tools: workspace:* - mocha: ^8.3.2 + mocha: ^10.0.0 npm-run-all: ^4.1.5 null-loader: ^0.1.1 openid-client: ^4.7.4 @@ -1929,7 +1929,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 dotenv: 10.0.0 dotenv-expand: 5.1.0 - mocha: 8.4.0 + mocha: 10.0.0 openid-client: 4.9.1 puppeteer: 5.3.1 devDependencies: @@ -2007,7 +2007,7 @@ importers: internal-tools: workspace:* jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 react: ^17.0.0 react-dom: ^17.0.0 react-test-renderer: ^17.0.0 @@ -2056,7 +2056,7 @@ importers: faker: 4.1.0 fast-sort: 3.1.3 immer: 9.0.6 - mocha: 8.4.0 + mocha: 10.0.0 react: 17.0.2 react-dom: 17.0.2_react@17.0.2 react-test-renderer: 17.0.2_react@17.0.2 @@ -2177,7 +2177,7 @@ importers: dotenv-expand: ^5.1.0 eslint: ^7.11.0 internal-tools: workspace:* - mocha: ^8.3.2 + mocha: ^10.0.0 npm-run-all: ^4.1.5 null-loader: ^0.1.1 openid-client: ^4.7.4 @@ -2208,7 +2208,7 @@ importers: chai-as-promised: 7.1.1_chai@4.3.6 dotenv: 10.0.0 dotenv-expand: 5.1.0 - mocha: 8.4.0 + mocha: 10.0.0 openid-client: 4.9.1 puppeteer: 5.3.1 devDependencies: @@ -2264,7 +2264,7 @@ importers: eslint: ^7.11.0 faker: ^4.1.0 lolex: ^2.7.1 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 object-hash: ^1.3.1 rimraf: ^3.0.2 @@ -2307,7 +2307,7 @@ importers: eslint: 7.32.0 faker: 4.1.0 lolex: 2.7.5 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -2342,7 +2342,7 @@ importers: eslint: ^7.11.0 faker: ^4.1.0 json-schema-faker: 0.5.0-rc16 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -2377,7 +2377,7 @@ importers: eslint: 7.32.0 faker: 4.1.0 json-schema-faker: 0.5.0-rc16 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -2431,7 +2431,7 @@ importers: jsdom: ^19.0.0 jsdom-global: 3.0.2 micro-memoize: ^4.0.9 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 react: ^17.0.0 react-dom: ^17.0.0 @@ -2488,7 +2488,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 react: 17.0.2 react-dom: 17.0.2_react@17.0.2 @@ -2529,7 +2529,7 @@ importers: faker: ^4.1.0 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -2565,7 +2565,7 @@ importers: faker: 4.1.0 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -2608,7 +2608,7 @@ importers: jsdom: ^19.0.0 jsdom-global: 3.0.2 make-dir: ^1.3.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 sinon: ^9.0.2 @@ -2647,7 +2647,7 @@ importers: jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 make-dir: 1.3.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 sinon: 9.2.4 @@ -2890,7 +2890,7 @@ importers: '@types/yargs': ^12.0.5 chai: ^4.1.2 eslint: ^7.11.0 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 yargs: ^16.0.0 @@ -2909,7 +2909,7 @@ importers: '@types/node': 14.14.31 '@types/yargs': 12.0.20 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -3040,7 +3040,7 @@ importers: eslint: ^7.11.0 fs-extra: ^8.1.0 internal-tools: workspace:* - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 yargs: ^16.0.0 @@ -3069,7 +3069,7 @@ importers: cross-env: 5.2.1 eslint: 7.32.0 internal-tools: link:../../tools/internal - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -3450,7 +3450,7 @@ importers: eslint: ^7.11.0 fs-extra: ^8.1.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 mocha-junit-reporter: ^1.16.0 recursive-readdir: ^2.2.2 rimraf: ^3.0.2 @@ -3467,8 +3467,8 @@ importers: cross-spawn: 7.0.3 fs-extra: 8.1.0 glob: 7.2.0 - mocha: 8.4.0 - mocha-junit-reporter: 1.23.3_mocha@8.4.0 + mocha: 10.0.0 + mocha-junit-reporter: 1.23.3_mocha@10.0.0 recursive-readdir: 2.2.2 rimraf: 3.0.2 tree-kill: 1.2.2 @@ -3501,7 +3501,7 @@ importers: express: ^4.16.3 jsonc-parser: ~2.0.3 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 puppeteer: chrome-86 rimraf: ^3.0.2 @@ -3514,7 +3514,7 @@ importers: express: 4.18.1 jsonc-parser: 2.0.3 lodash: 4.17.21 - mocha: 8.4.0 + mocha: 10.0.0 puppeteer: 5.3.1 source-map-support: 0.5.21 uuid: 7.0.3 @@ -3560,7 +3560,7 @@ importers: cpx2: ^3.0.0 eslint: ^7.11.0 fs-extra: ^8.1.0 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 rimraf: ^3.0.2 source-map-support: ^0.5.6 @@ -3588,7 +3588,7 @@ importers: chai: 4.3.6 cpx2: 3.0.2 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 source-map-support: 0.5.21 @@ -3613,7 +3613,7 @@ importers: eslint-plugin-prefer-arrow: 1.2.3 eslint-plugin-react: 7.24.0 eslint-plugin-react-hooks: 4.2.0 - mocha: ^8.3.2 + mocha: ^10.0.0 require-dir: ^1.2.0 typescript: ~4.4.0 dependencies: @@ -3636,19 +3636,19 @@ importers: '@types/node': 14.14.31 '@typescript-eslint/typescript-estree': 4.31.2_typescript@4.4.4 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 typescript: 4.4.4 ../../tools/internal: specifiers: '@itwin/build-tools': workspace:* - mocha: ^8.3.2 + mocha: ^10.0.0 yargs: ^16.0.0 dependencies: yargs: 16.2.0 devDependencies: '@itwin/build-tools': link:../build - mocha: 8.4.0 + mocha: 10.0.0 ../../tools/perf-tools: specifiers: @@ -3695,7 +3695,7 @@ importers: glob: ^7.1.2 lodash: ^4.17.10 memfs: ^3.2.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 resolve: 1.19.0 rimraf: ^3.0.2 @@ -3734,7 +3734,7 @@ importers: cpx2: 3.0.2 eslint: 7.32.0 memfs: 3.4.1 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -3763,7 +3763,7 @@ importers: ignore-styles: ^5.0.1 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 raf: ^3.4.0 rimraf: ^3.0.2 @@ -3795,7 +3795,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 raf: 3.4.1 rimraf: 3.0.2 @@ -3842,7 +3842,7 @@ importers: immer: 9.0.6 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 raf: ^3.4.0 react: ^17.0.0 @@ -3895,7 +3895,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 raf: 3.4.1 react: 17.0.2 @@ -3966,7 +3966,7 @@ importers: jsdom: ^19.0.0 jsdom-global: 3.0.2 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 npm-run-all: ^4.1.5 nyc: ^15.1.0 raf: ^3.4.0 @@ -4046,7 +4046,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 npm-run-all: 4.1.5 nyc: 15.1.0 raf: 3.4.1 @@ -4121,7 +4121,7 @@ importers: jsdom-global: 3.0.2 linkify-it: ~2.2.0 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 raf: ^3.4.0 react: ^17.0.0 @@ -4212,7 +4212,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 raf: 3.4.1 react: 17.0.2 @@ -4273,7 +4273,7 @@ importers: jsdom: ^19.0.0 jsdom-global: 3.0.2 lodash: ^4.17.10 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 raf: ^3.4.0 react: ^17.0.0 @@ -4338,7 +4338,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 raf: 3.4.1 react: 17.0.2 @@ -4405,7 +4405,7 @@ importers: immutable: ^3.8.2 jsdom: ^19.0.0 jsdom-global: 3.0.2 - mocha: ^8.3.2 + mocha: ^10.0.0 nyc: ^15.1.0 raf: ^3.4.0 react: ^17.0.0 @@ -4472,7 +4472,7 @@ importers: ignore-styles: 5.0.1 jsdom: 19.0.0 jsdom-global: 3.0.2_jsdom@19.0.0 - mocha: 8.4.0 + mocha: 10.0.0 nyc: 15.1.0 raf: 3.4.1 react: 17.0.2 @@ -4499,7 +4499,7 @@ importers: '@types/yargs': ^12.0.5 eslint: ^7.11.0 glob: ^7.1.2 - mocha: ^8.3.2 + mocha: ^10.0.0 rimraf: ^3.0.2 typescript: ~4.4.0 yargs: ^16.0.0 @@ -4517,7 +4517,7 @@ importers: '@types/mocha': 8.2.3 '@types/yargs': 12.0.20 eslint: 7.32.0 - mocha: 8.4.0 + mocha: 10.0.0 rimraf: 3.0.2 typescript: 4.4.4 @@ -10167,7 +10167,7 @@ packages: dev: true /buffer-crc32/0.2.13: - resolution: {integrity: sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=} + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} /buffer-equal-constant-time/1.0.1: resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} @@ -11489,6 +11489,18 @@ packages: dependencies: ms: 2.1.2 + /debug/4.3.4_supports-color@8.1.1: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + supports-color: 8.1.1 + /decamelize/1.2.0: resolution: {integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=} engines: {node: '>=0.10.0'} @@ -14828,6 +14840,10 @@ packages: /is-typedarray/1.0.0: resolution: {integrity: sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=} + /is-unicode-supported/0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + /is-weakref/1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: @@ -15589,7 +15605,6 @@ packages: hasBin: true dependencies: argparse: 2.0.1 - dev: true /jsbi/3.2.5: resolution: {integrity: sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==} @@ -16162,6 +16177,13 @@ packages: dependencies: chalk: 4.1.2 + /log-symbols/4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + /logform/2.4.0: resolution: {integrity: sha512-CPSJw4ftjf517EhXZGGvTHHkYobo7ZCc0kvwUoOYcjfR2UVrI66RHj8MCrfAdEitdmFqbu2BYdYs8FHHZSb6iw==} dependencies: @@ -16630,7 +16652,7 @@ packages: engines: {node: '>=10'} hasBin: true - /mocha-junit-reporter/1.23.3_mocha@8.4.0: + /mocha-junit-reporter/1.23.3_mocha@10.0.0: resolution: {integrity: sha512-ed8LqbRj1RxZfjt/oC9t12sfrWsjZ3gNnbhV1nuj9R/Jb5/P3Xb4duv2eCfCDMYH+fEu0mqca7m4wsiVjsxsvA==} peerDependencies: mocha: '>=2.2.5' @@ -16638,11 +16660,39 @@ packages: debug: 2.6.9 md5: 2.3.0 mkdirp: 0.5.6 - mocha: 8.4.0 + mocha: 10.0.0 strip-ansi: 4.0.0 xml: 1.0.1 dev: false + /mocha/10.0.0: + resolution: {integrity: sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==} + engines: {node: '>= 14.0.0'} + hasBin: true + dependencies: + '@ungap/promise-all-settled': 1.1.2 + ansi-colors: 4.1.1 + browser-stdout: 1.3.1 + chokidar: 3.5.3 + debug: 4.3.4_supports-color@8.1.1 + diff: 5.0.0 + escape-string-regexp: 4.0.0 + find-up: 5.0.0 + glob: 7.2.0 + he: 1.2.0 + js-yaml: 4.1.0 + log-symbols: 4.1.0 + minimatch: 5.0.1 + ms: 2.1.3 + nanoid: 3.3.3 + serialize-javascript: 6.0.0 + strip-json-comments: 3.1.1 + supports-color: 8.1.1 + workerpool: 6.2.1 + yargs: 16.2.0 + yargs-parser: 20.2.4 + yargs-unparser: 2.0.0 + /mocha/8.4.0: resolution: {integrity: sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==} engines: {node: '>= 10.12.0'} @@ -16782,6 +16832,11 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + /nanoid/3.3.3: + resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + /nanoid/3.3.4: resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -19979,7 +20034,6 @@ packages: resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} dependencies: randombytes: 2.1.0 - dev: true /serve-index/1.9.1: resolution: {integrity: sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=} @@ -22342,6 +22396,9 @@ packages: /workerpool/6.1.0: resolution: {integrity: sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==} + /workerpool/6.2.1: + resolution: {integrity: sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==} + /wrap-ansi/5.1.0: resolution: {integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==} engines: {node: '>=6'} diff --git a/core/backend/package.json b/core/backend/package.json index 91e70edf0914..e44212d5958a 100644 --- a/core/backend/package.json +++ b/core/backend/package.json @@ -80,7 +80,7 @@ "eslint": "^7.11.0", "fs-extra": "^8.1.0", "internal-tools": "workspace:*", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "null-loader": "^0.1.1", "nyc": "^15.1.0", "rimraf": "^3.0.2", diff --git a/core/bentley/package.json b/core/bentley/package.json index 3ed89da04c76..a024ca611bbe 100644 --- a/core/bentley/package.json +++ b/core/bentley/package.json @@ -42,7 +42,7 @@ "chai": "^4.1.2", "chai-as-promised": "^7", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/core/common/package.json b/core/common/package.json index 530d91f52331..448f526d1bfe 100644 --- a/core/common/package.json +++ b/core/common/package.json @@ -57,7 +57,7 @@ "@types/semver": "^5.5.0", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/core/ecschema-editing/package.json b/core/ecschema-editing/package.json index ffcd19378b69..b233950630a1 100644 --- a/core/ecschema-editing/package.json +++ b/core/ecschema-editing/package.json @@ -55,7 +55,7 @@ "chai-as-promised": "^7", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/core/ecschema-locaters/package.json b/core/ecschema-locaters/package.json index 9bc548d00f8a..4c9fa58fb118 100644 --- a/core/ecschema-locaters/package.json +++ b/core/ecschema-locaters/package.json @@ -47,7 +47,7 @@ "chai-as-promised": "^7", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/core/ecschema-metadata/package.json b/core/ecschema-metadata/package.json index 5dea7a0d940f..3c8b983afffa 100644 --- a/core/ecschema-metadata/package.json +++ b/core/ecschema-metadata/package.json @@ -52,7 +52,7 @@ "chai-as-promised": "^7", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/core/express-server/package.json b/core/express-server/package.json index 20550627825a..5ca0f14e95db 100644 --- a/core/express-server/package.json +++ b/core/express-server/package.json @@ -49,7 +49,7 @@ "@types/express-ws": "^3.0.1", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/core/frontend/package.json b/core/frontend/package.json index 632d8704dcd1..65bee113351b 100644 --- a/core/frontend/package.json +++ b/core/frontend/package.json @@ -77,7 +77,7 @@ "cpx2": "^3.0.0", "eslint": "^7.11.0", "glob": "^7.1.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/core/geometry/package.json b/core/geometry/package.json index 492849615e4b..d5eb62ed1899 100644 --- a/core/geometry/package.json +++ b/core/geometry/package.json @@ -45,7 +45,7 @@ "chai": "^4.1.2", "debug": "^2.6.9", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "semver": "^5.5.0", diff --git a/core/hypermodeling/package.json b/core/hypermodeling/package.json index bb980f8386cb..bc99310c1cb0 100644 --- a/core/hypermodeling/package.json +++ b/core/hypermodeling/package.json @@ -57,7 +57,7 @@ "cpx2": "^3.0.0", "eslint": "^7.11.0", "glob": "^7.1.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "source-map-loader": "^1.0.0", diff --git a/core/markup/package.json b/core/markup/package.json index 75bc0d1349a7..74b782bfccc5 100644 --- a/core/markup/package.json +++ b/core/markup/package.json @@ -62,7 +62,7 @@ "cpx2": "^3.0.0", "eslint": "^7.11.0", "glob": "^7.1.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "source-map-loader": "^1.0.0", diff --git a/core/mobile/package.json b/core/mobile/package.json index 0beda12943e3..f0bc754ecc60 100644 --- a/core/mobile/package.json +++ b/core/mobile/package.json @@ -69,7 +69,7 @@ "dotenv-expand": "^5.1.0", "eslint": "^7.11.0", "js-base64": "^3.6.1", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, diff --git a/core/orbitgt/package.json b/core/orbitgt/package.json index 59c62ec544f0..798c34a012da 100644 --- a/core/orbitgt/package.json +++ b/core/orbitgt/package.json @@ -41,7 +41,7 @@ "cpx2": "^3.0.0", "debug": "^2.6.9", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "semver": "^5.5.0", diff --git a/core/quantity/package.json b/core/quantity/package.json index 47e1a6b8b1e7..b3486505638c 100644 --- a/core/quantity/package.json +++ b/core/quantity/package.json @@ -45,7 +45,7 @@ "chai": "^4.1.2", "chai-as-promised": "^7", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/core/telemetry/package.json b/core/telemetry/package.json index a0e88f9fa40b..df8318c273b7 100644 --- a/core/telemetry/package.json +++ b/core/telemetry/package.json @@ -45,7 +45,7 @@ "@types/node": "14.14.31", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "source-map-loader": "^1.0.0", "typescript": "~4.4.0", diff --git a/core/transformer/package.json b/core/transformer/package.json index 196195924fd3..d8317ab14768 100644 --- a/core/transformer/package.json +++ b/core/transformer/package.json @@ -65,7 +65,7 @@ "chai-as-promised": "^7", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "rimraf": "^3.0.2", diff --git a/core/webgl-compatibility/package.json b/core/webgl-compatibility/package.json index 9d82e99c4be8..c754833f3768 100644 --- a/core/webgl-compatibility/package.json +++ b/core/webgl-compatibility/package.json @@ -48,7 +48,7 @@ "chai": "^4.1.2", "eslint": "^7.11.0", "glob": "^7.1.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "source-map-loader": "^1.0.0", "typescript": "~4.4.0", diff --git a/domains/analytical/backend/package.json b/domains/analytical/backend/package.json index 8953ed728a9f..6f2c708d6d38 100644 --- a/domains/analytical/backend/package.json +++ b/domains/analytical/backend/package.json @@ -54,7 +54,7 @@ "chai": "^4.1.2", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/domains/linear-referencing/backend/package.json b/domains/linear-referencing/backend/package.json index 3279759c4148..1717b90774de 100644 --- a/domains/linear-referencing/backend/package.json +++ b/domains/linear-referencing/backend/package.json @@ -55,7 +55,7 @@ "chai": "^4.1.2", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/domains/linear-referencing/common/package.json b/domains/linear-referencing/common/package.json index c1bbb6679ca6..4f5c0a21ad40 100644 --- a/domains/linear-referencing/common/package.json +++ b/domains/linear-referencing/common/package.json @@ -49,7 +49,7 @@ "@types/mocha": "^8.2.2", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/domains/physical-material/backend/package.json b/domains/physical-material/backend/package.json index b0a58d24b795..f6b18c829da8 100644 --- a/domains/physical-material/backend/package.json +++ b/domains/physical-material/backend/package.json @@ -52,7 +52,7 @@ "@types/node": "14.14.31", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" diff --git a/editor/common/package.json b/editor/common/package.json index a6d062ef74fa..65a779360c6a 100644 --- a/editor/common/package.json +++ b/editor/common/package.json @@ -50,7 +50,7 @@ "@types/semver": "^5.5.0", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, diff --git a/example-code/app/package.json b/example-code/app/package.json index 66f33c0091d0..b04fd5d44e59 100644 --- a/example-code/app/package.json +++ b/example-code/app/package.json @@ -36,7 +36,7 @@ "chai": "^4.1.2", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, diff --git a/example-code/snippets/package.json b/example-code/snippets/package.json index 0d1f74ac2a64..6e7416d2439f 100644 --- a/example-code/snippets/package.json +++ b/example-code/snippets/package.json @@ -40,7 +40,7 @@ "chai-as-promised": "^7", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, diff --git a/extensions/map-layers-auth/package.json b/extensions/map-layers-auth/package.json index 4858e6431419..87bbe1b1ca2d 100644 --- a/extensions/map-layers-auth/package.json +++ b/extensions/map-layers-auth/package.json @@ -63,7 +63,7 @@ "eslint": "^7.11.0", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/extensions/map-layers/package.json b/extensions/map-layers/package.json index 16f6bbe3519c..4db1b8b83c9e 100644 --- a/extensions/map-layers/package.json +++ b/extensions/map-layers/package.json @@ -74,7 +74,7 @@ "eslint": "^7.11.0", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "react": "^17.0.0", "react-dom": "^17.0.0", diff --git a/extensions/test-extension/package.json b/extensions/test-extension/package.json index dcd5ab2c84e1..e82ff1865a6e 100644 --- a/extensions/test-extension/package.json +++ b/extensions/test-extension/package.json @@ -51,4 +51,4 @@ "activationEvents": [ "onStartup" ] -} \ No newline at end of file +} diff --git a/full-stack-tests/backend/package.json b/full-stack-tests/backend/package.json index e33158edd929..81415130cb81 100644 --- a/full-stack-tests/backend/package.json +++ b/full-stack-tests/backend/package.json @@ -64,7 +64,7 @@ "dotenv-expand": "^5.1.0", "eslint": "^7.11.0", "fs-extra": "^8.1.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2" }, diff --git a/full-stack-tests/ecschema-rpc-interface/package.json b/full-stack-tests/ecschema-rpc-interface/package.json index 946375eab8ce..808ecd3beb87 100644 --- a/full-stack-tests/ecschema-rpc-interface/package.json +++ b/full-stack-tests/ecschema-rpc-interface/package.json @@ -47,7 +47,7 @@ "chai-as-promised": "^7", "dotenv": "^10.0.0", "dotenv-expand": "^5.1.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "openid-client": "^4.7.4", "puppeteer": "chrome-86" }, diff --git a/full-stack-tests/presentation/package.json b/full-stack-tests/presentation/package.json index 235de03d89be..a002c2290644 100644 --- a/full-stack-tests/presentation/package.json +++ b/full-stack-tests/presentation/package.json @@ -62,7 +62,7 @@ "faker": "^4.1.0", "fast-sort": "^3.0.2", "immer": "9.0.6", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "react": "^17.0.0", "react-dom": "^17.0.0", "react-test-renderer": "^17.0.0", diff --git a/full-stack-tests/rpc-interface/package.json b/full-stack-tests/rpc-interface/package.json index c721e7ada154..4a2d9f6cc690 100644 --- a/full-stack-tests/rpc-interface/package.json +++ b/full-stack-tests/rpc-interface/package.json @@ -53,7 +53,7 @@ "chai-as-promised": "^7", "dotenv": "^10.0.0", "dotenv-expand": "^5.1.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "openid-client": "^4.7.4", "puppeteer": "chrome-86" }, diff --git a/presentation/backend/package.json b/presentation/backend/package.json index 6530ee43fc1f..c5cf2d36c51e 100644 --- a/presentation/backend/package.json +++ b/presentation/backend/package.json @@ -76,7 +76,7 @@ "eslint": "^7.11.0", "faker": "^4.1.0", "lolex": "^2.7.1", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/presentation/common/package.json b/presentation/common/package.json index 06bfdac252d4..5324d6546e37 100644 --- a/presentation/common/package.json +++ b/presentation/common/package.json @@ -76,7 +76,7 @@ "eslint": "^7.11.0", "faker": "^4.1.0", "json-schema-faker": "0.5.0-rc16", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/presentation/components/package.json b/presentation/components/package.json index e705be7e7a8e..ce95570842aa 100644 --- a/presentation/components/package.json +++ b/presentation/components/package.json @@ -104,7 +104,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "react": "^17.0.0", "react-dom": "^17.0.0", diff --git a/presentation/frontend/package.json b/presentation/frontend/package.json index eb039a29d5a9..947bb23d750b 100644 --- a/presentation/frontend/package.json +++ b/presentation/frontend/package.json @@ -75,7 +75,7 @@ "faker": "^4.1.0", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/presentation/testing/package.json b/presentation/testing/package.json index eea43f170976..92d2bc6116af 100644 --- a/presentation/testing/package.json +++ b/presentation/testing/package.json @@ -72,7 +72,7 @@ "jsdom": "^19.0.0", "jsdom-global": "3.0.2", "make-dir": "^1.3.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.0.2", diff --git a/test-apps/display-performance-test-app/package.json b/test-apps/display-performance-test-app/package.json index 1baf623b3801..662f483548a6 100644 --- a/test-apps/display-performance-test-app/package.json +++ b/test-apps/display-performance-test-app/package.json @@ -103,4 +103,4 @@ ] } } -} \ No newline at end of file +} diff --git a/test-apps/display-test-app/package.json b/test-apps/display-test-app/package.json index 71c97ecdd064..392730ec52bb 100644 --- a/test-apps/display-test-app/package.json +++ b/test-apps/display-test-app/package.json @@ -116,4 +116,4 @@ ] } } -} \ No newline at end of file +} diff --git a/test-apps/export-gltf/package.json b/test-apps/export-gltf/package.json index 26432c9066a8..2d61dc691af3 100644 --- a/test-apps/export-gltf/package.json +++ b/test-apps/export-gltf/package.json @@ -35,4 +35,4 @@ ], "extends": "plugin:@itwin/itwinjs-recommended" } -} \ No newline at end of file +} diff --git a/test-apps/imjs-importer/package.json b/test-apps/imjs-importer/package.json index d1cffbd6aa42..c8f68a6a5627 100644 --- a/test-apps/imjs-importer/package.json +++ b/test-apps/imjs-importer/package.json @@ -40,7 +40,7 @@ "@types/yargs": "^12.0.5", "chai": "^4.1.2", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, @@ -50,4 +50,4 @@ ], "extends": "plugin:@itwin/itwinjs-recommended" } -} \ No newline at end of file +} diff --git a/test-apps/imodel-from-geojson/package.json b/test-apps/imodel-from-geojson/package.json index fbda453dcd96..1e4882feb2cf 100644 --- a/test-apps/imodel-from-geojson/package.json +++ b/test-apps/imodel-from-geojson/package.json @@ -38,4 +38,4 @@ ], "extends": "plugin:@itwin/itwinjs-recommended" } -} \ No newline at end of file +} diff --git a/test-apps/imodel-from-orbitgt/package.json b/test-apps/imodel-from-orbitgt/package.json index 9858635f0143..a14b409b495f 100644 --- a/test-apps/imodel-from-orbitgt/package.json +++ b/test-apps/imodel-from-orbitgt/package.json @@ -37,4 +37,4 @@ ], "extends": "plugin:@itwin/itwinjs-recommended" } -} \ No newline at end of file +} diff --git a/test-apps/imodel-from-reality-model/package.json b/test-apps/imodel-from-reality-model/package.json index a5e5f8f8b1b2..841cb6ba097b 100644 --- a/test-apps/imodel-from-reality-model/package.json +++ b/test-apps/imodel-from-reality-model/package.json @@ -38,4 +38,4 @@ ], "extends": "plugin:@itwin/itwinjs-recommended" } -} \ No newline at end of file +} diff --git a/test-apps/imodel-transformer/package.json b/test-apps/imodel-transformer/package.json index 53c9749e91dd..7f11202a728d 100644 --- a/test-apps/imodel-transformer/package.json +++ b/test-apps/imodel-transformer/package.json @@ -42,7 +42,7 @@ "cross-env": "^5.1.4", "eslint": "^7.11.0", "internal-tools": "workspace:*", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" }, diff --git a/tools/build/package.json b/tools/build/package.json index 18d0c1931deb..7ea053e9ee5f 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -35,7 +35,7 @@ "cross-spawn": "^7.0.1", "fs-extra": "^8.1.0", "glob": "^7.1.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "mocha-junit-reporter": "^1.16.0", "recursive-readdir": "^2.2.2", "rimraf": "^3.0.2", diff --git a/tools/certa/package.json b/tools/certa/package.json index 1fb97a71668c..cf720d015320 100644 --- a/tools/certa/package.json +++ b/tools/certa/package.json @@ -35,7 +35,7 @@ "express": "^4.16.3", "jsonc-parser": "~2.0.3", "lodash": "^4.17.10", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "puppeteer": "chrome-86", "source-map-support": "^0.5.6", "uuid": "^7.0.3", diff --git a/tools/certa/src/runners/chrome/MochaSerializer.ts b/tools/certa/src/runners/chrome/MochaSerializer.ts index 963fd76476a9..210dbb5dc6fc 100644 --- a/tools/certa/src/runners/chrome/MochaSerializer.ts +++ b/tools/certa/src/runners/chrome/MochaSerializer.ts @@ -24,7 +24,14 @@ class MochaSerializer { public static createHandle(raw: MochaObj, isPrimary: boolean) { let $$index = this._registry.indexOf(raw); - const $$typeName = raw.constructor.name; + // Browser side of mocha is webpacked so the constructor name has an added suffix for example `Test` is converted into `Test$4`. + // This is not the case is node side of mocha, so an error is thrown because of this mismatch. The `.replace()` is there to strip that suffix + let $$typeName: string; + if (raw instanceof Mocha.Suite) $$typeName = "Suite"; + else if (raw instanceof Mocha.Test) $$typeName = "Test"; + else if (raw instanceof Mocha.Hook) $$typeName = "Hook"; + else throw new Error("Unexpected instance of Mocha"); + if ($$index < 0) { $$index = this._registry.push(raw) - 1; // This is a new instance, so we also need to include its properties diff --git a/tools/ecschema2ts/package.json b/tools/ecschema2ts/package.json index 683d1d25a512..7aea7a1c3675 100644 --- a/tools/ecschema2ts/package.json +++ b/tools/ecschema2ts/package.json @@ -47,7 +47,7 @@ "chai-string": "^1.5.0", "cpx2": "^3.0.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "rimraf": "^3.0.2", "source-map-support": "^0.5.6", diff --git a/tools/eslint-plugin/package.json b/tools/eslint-plugin/package.json index 766852cd7775..ac9f74b1f258 100644 --- a/tools/eslint-plugin/package.json +++ b/tools/eslint-plugin/package.json @@ -51,7 +51,7 @@ "@types/node": "14.14.31", "@typescript-eslint/typescript-estree": "~4.31.0", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "typescript": "~4.4.0" } } diff --git a/tools/internal/package.json b/tools/internal/package.json index 8c6a17864989..9567a2817ea1 100644 --- a/tools/internal/package.json +++ b/tools/internal/package.json @@ -25,6 +25,6 @@ }, "devDependencies": { "@itwin/build-tools": "workspace:*", - "mocha": "^8.3.2" + "mocha": "^10.0.0" } -} \ No newline at end of file +} diff --git a/tools/webpack-core/package.json b/tools/webpack-core/package.json index 93eeef089bb1..5b28e6388bc9 100644 --- a/tools/webpack-core/package.json +++ b/tools/webpack-core/package.json @@ -56,7 +56,7 @@ "typescript": "~4.4.0", "webpack": "4.42.0", "cpx2": "^3.0.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "chai": "^4.1.2", "chai-as-promised": "^7", diff --git a/ui/appui-abstract/package.json b/ui/appui-abstract/package.json index a80af3a243b8..22cd4712ef8d 100644 --- a/ui/appui-abstract/package.json +++ b/ui/appui-abstract/package.json @@ -63,7 +63,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "raf": "^3.4.0", "rimraf": "^3.0.2", diff --git a/ui/appui-layout-react/package.json b/ui/appui-layout-react/package.json index e14fc335f397..8913e6e5e59d 100644 --- a/ui/appui-layout-react/package.json +++ b/ui/appui-layout-react/package.json @@ -78,7 +78,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "raf": "^3.4.0", "react": "^17.0.0", diff --git a/ui/appui-react/package.json b/ui/appui-react/package.json index f323107e4e27..942a6ded8430 100644 --- a/ui/appui-react/package.json +++ b/ui/appui-react/package.json @@ -109,7 +109,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "raf": "^3.4.0", diff --git a/ui/components-react/package.json b/ui/components-react/package.json index 5389e2b6c7be..7955a87d1571 100644 --- a/ui/components-react/package.json +++ b/ui/components-react/package.json @@ -92,7 +92,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "raf": "^3.4.0", "react": "^17.0.0", diff --git a/ui/core-react/package.json b/ui/core-react/package.json index d881ced1ac25..a4e0c9be9a77 100644 --- a/ui/core-react/package.json +++ b/ui/core-react/package.json @@ -86,7 +86,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "raf": "^3.4.0", "react": "^17.0.0", diff --git a/ui/imodel-components-react/package.json b/ui/imodel-components-react/package.json index 77bcb985adda..87640fa806bb 100644 --- a/ui/imodel-components-react/package.json +++ b/ui/imodel-components-react/package.json @@ -95,7 +95,7 @@ "ignore-styles": "^5.0.1", "jsdom": "^19.0.0", "jsdom-global": "3.0.2", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "nyc": "^15.1.0", "raf": "^3.4.0", "react": "^17.0.0", diff --git a/utils/workspace-editor/package.json b/utils/workspace-editor/package.json index 90e7c3e58f12..e007929365a7 100644 --- a/utils/workspace-editor/package.json +++ b/utils/workspace-editor/package.json @@ -36,7 +36,7 @@ "@types/yargs": "^12.0.5", "@types/glob": "^5.0.35", "eslint": "^7.11.0", - "mocha": "^8.3.2", + "mocha": "^10.0.0", "rimraf": "^3.0.2", "typescript": "~4.4.0" },