From 2fb9e59d1e96fab86510148976131aad528d6f15 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Mon, 1 Jul 2024 21:55:30 +0200 Subject: [PATCH 1/2] chore: drop ts-mocha for mocha and ts-node --- .mocharc.yml | 1 + api/package.json | 5 +- experimental/packages/api-events/package.json | 3 +- experimental/packages/api-logs/package.json | 3 +- .../exporter-logs-otlp-grpc/package.json | 3 +- .../exporter-logs-otlp-http/package.json | 3 +- .../exporter-logs-otlp-proto/package.json | 3 +- .../exporter-trace-otlp-grpc/package.json | 3 +- .../exporter-trace-otlp-http/package.json | 3 +- .../exporter-trace-otlp-proto/package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- .../package.json | 1 - .../package.json | 3 +- .../package.json | 3 +- .../package.json | 1 - .../package.json | 3 +- .../opentelemetry-sdk-node/package.json | 3 +- .../packages/otlp-exporter-base/package.json | 3 +- .../otlp-grpc-exporter-base/package.json | 3 +- .../packages/otlp-transformer/package.json | 3 +- .../propagator-aws-xray-lambda/package.json | 3 +- experimental/packages/sdk-events/package.json | 3 +- experimental/packages/sdk-logs/package.json | 3 +- .../packages/shim-opencensus/package.json | 3 +- package-lock.json | 304 +----------------- .../package.json | 3 +- .../package.json | 1 - packages/opentelemetry-core/package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- .../opentelemetry-propagator-b3/package.json | 3 +- .../package.json | 3 +- packages/opentelemetry-resources/package.json | 3 +- .../opentelemetry-sdk-trace-base/package.json | 3 +- .../opentelemetry-sdk-trace-node/package.json | 3 +- .../opentelemetry-sdk-trace-web/package.json | 1 - .../package.json | 3 +- .../package.json | 3 +- packages/propagator-aws-xray/package.json | 3 +- packages/sdk-metrics/package.json | 3 +- packages/template/package.json | 5 +- 45 files changed, 44 insertions(+), 386 deletions(-) create mode 100644 .mocharc.yml diff --git a/.mocharc.yml b/.mocharc.yml new file mode 100644 index 00000000000..45bd4bdc15e --- /dev/null +++ b/.mocharc.yml @@ -0,0 +1 @@ +require: 'ts-node/register' diff --git a/api/package.json b/api/package.json index b457f5e0e9a..99fbe017cae 100644 --- a/api/package.json +++ b/api/package.json @@ -40,8 +40,8 @@ "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", "test:browser": "karma start --single-run", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", - "test:eol": "ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", + "test:eol": "mocha 'test/**/*.test.ts'", "test:webworker": "karma start karma.worker.js --single-run", "cycle-check": "dpdm --exit-code circular:1 src/index.ts", "version": "node ../scripts/version-update.js", @@ -102,7 +102,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "unionfs": "4.5.4", "webpack": "5.89.0" diff --git a/experimental/packages/api-events/package.json b/experimental/packages/api-events/package.json index d5393759fa7..c7e91a48710 100644 --- a/experimental/packages/api-events/package.json +++ b/experimental/packages/api-events/package.json @@ -24,7 +24,7 @@ "prepublishOnly": "npm run compile", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", "prewatch": "node ../../../scripts/version-update.js", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -82,7 +82,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/experimental/packages/api-logs/package.json b/experimental/packages/api-logs/package.json index ae44ed622a3..9800982ad1a 100644 --- a/experimental/packages/api-logs/package.json +++ b/experimental/packages/api-logs/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "test:browser": "karma start --single-run", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", @@ -81,7 +81,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/experimental/packages/exporter-logs-otlp-grpc/package.json b/experimental/packages/exporter-logs-otlp-grpc/package.json index db852a91bed..d11cff1ef0b 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/package.json +++ b/experimental/packages/exporter-logs-otlp-grpc/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "version": "node ../../../scripts/version-update.js", "watch": "tsc --watch --build", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", @@ -65,7 +65,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/exporter-logs-otlp-http/package.json b/experimental/packages/exporter-logs-otlp-http/package.json index ce24799fae9..68ca65e5d2c 100644 --- a/experimental/packages/exporter-logs-otlp-http/package.json +++ b/experimental/packages/exporter-logs-otlp-http/package.json @@ -37,7 +37,7 @@ "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -95,7 +95,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/exporter-logs-otlp-proto/package.json b/experimental/packages/exporter-logs-otlp-proto/package.json index 15462150791..2b55e307dac 100644 --- a/experimental/packages/exporter-logs-otlp-proto/package.json +++ b/experimental/packages/exporter-logs-otlp-proto/package.json @@ -20,7 +20,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -84,7 +84,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/exporter-trace-otlp-grpc/package.json b/experimental/packages/exporter-trace-otlp-grpc/package.json index ee9fac18bcc..3fb72b2cbca 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/package.json +++ b/experimental/packages/exporter-trace-otlp-grpc/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "version": "node ../../../scripts/version-update.js", "watch": "tsc --watch --build", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", @@ -62,7 +62,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/exporter-trace-otlp-http/package.json b/experimental/packages/exporter-trace-otlp-http/package.json index 5d07fa8c716..5bdb93f66ce 100644 --- a/experimental/packages/exporter-trace-otlp-http/package.json +++ b/experimental/packages/exporter-trace-otlp-http/package.json @@ -22,7 +22,7 @@ "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -86,7 +86,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/exporter-trace-otlp-proto/package.json b/experimental/packages/exporter-trace-otlp-proto/package.json index 5a0cb0cbd93..e3aef93dd6f 100644 --- a/experimental/packages/exporter-trace-otlp-proto/package.json +++ b/experimental/packages/exporter-trace-otlp-proto/package.json @@ -20,7 +20,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -83,7 +83,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-browser-detector/package.json b/experimental/packages/opentelemetry-browser-detector/package.json index a7690fc81bc..dffe112dcbc 100644 --- a/experimental/packages/opentelemetry-browser-detector/package.json +++ b/experimental/packages/opentelemetry-browser-detector/package.json @@ -13,7 +13,7 @@ "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "test:browser": "karma start --single-run", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", @@ -74,7 +74,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json index 8e5d3d2c6ca..7fd59a7c446 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "version": "node ../../../scripts/version-update.js", "watch": "tsc -w", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", @@ -61,7 +61,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json index 4cec1083902..d702006ab88 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json @@ -22,7 +22,7 @@ "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -86,7 +86,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json index 418590acd2a..74f84f531fb 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json @@ -14,7 +14,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", @@ -67,7 +67,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/opentelemetry-exporter-prometheus/package.json b/experimental/packages/opentelemetry-exporter-prometheus/package.json index c9cdaf737e3..d71dd07b596 100644 --- a/experimental/packages/opentelemetry-exporter-prometheus/package.json +++ b/experimental/packages/opentelemetry-exporter-prometheus/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "lint": "eslint . --ext .ts", @@ -55,7 +55,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/package.json b/experimental/packages/opentelemetry-instrumentation-fetch/package.json index e789ccdc014..212ffe90c9a 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/package.json +++ b/experimental/packages/opentelemetry-instrumentation-fetch/package.json @@ -80,7 +80,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-instrumentation-grpc/package.json b/experimental/packages/opentelemetry-instrumentation-grpc/package.json index 22b95a49057..f5fd6728c77 100644 --- a/experimental/packages/opentelemetry-instrumentation-grpc/package.json +++ b/experimental/packages/opentelemetry-instrumentation-grpc/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "npm run protos:generate && nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "npm run protos:generate && nyc mocha test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -69,7 +69,6 @@ "nyc": "15.1.0", "semver": "7.5.4", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/opentelemetry-instrumentation-http/package.json b/experimental/packages/opentelemetry-instrumentation-http/package.json index bd74dbcfcce..e311c6dd7b1 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/package.json +++ b/experimental/packages/opentelemetry-instrumentation-http/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -69,7 +69,6 @@ "request-promise-native": "1.0.9", "sinon": "15.1.2", "superagent": "9.0.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json index b127c1a9722..b14b1af8d97 100644 --- a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -80,7 +80,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-instrumentation/package.json b/experimental/packages/opentelemetry-instrumentation/package.json index 16d979f770c..79a3de0ff3e 100644 --- a/experimental/packages/opentelemetry-instrumentation/package.json +++ b/experimental/packages/opentelemetry-instrumentation/package.json @@ -48,7 +48,7 @@ "tdd": "npm run tdd:node", "tdd:node": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test:cjs": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test:cjs": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:esm": "nyc node --experimental-loader=./hook.mjs ../../../node_modules/mocha/bin/mocha 'test/node/*.test.mjs' test/node/*.test.mjs", "test": "npm run test:cjs && npm run test:esm", "test:browser": "karma start --single-run", @@ -108,7 +108,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/opentelemetry-sdk-node/package.json b/experimental/packages/opentelemetry-sdk-node/package.json index 52f0b4d741a..0865bb448d9 100644 --- a/experimental/packages/opentelemetry-sdk-node/package.json +++ b/experimental/packages/opentelemetry-sdk-node/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -78,7 +78,6 @@ "semver": "7.5.4", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-sdk-node", diff --git a/experimental/packages/otlp-exporter-base/package.json b/experimental/packages/otlp-exporter-base/package.json index fe92d139d99..fa181bffc5a 100644 --- a/experimental/packages/otlp-exporter-base/package.json +++ b/experimental/packages/otlp-exporter-base/package.json @@ -23,7 +23,7 @@ "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -86,7 +86,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/otlp-grpc-exporter-base/package.json b/experimental/packages/otlp-grpc-exporter-base/package.json index 9991565a9c8..20b677505b2 100644 --- a/experimental/packages/otlp-grpc-exporter-base/package.json +++ b/experimental/packages/otlp-grpc-exporter-base/package.json @@ -13,7 +13,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "version": "node ../../../scripts/version-update.js", "watch": "tsc -w", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", @@ -60,7 +60,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/experimental/packages/otlp-transformer/package.json b/experimental/packages/otlp-transformer/package.json index 696f5e1621d..f5366f2188b 100644 --- a/experimental/packages/otlp-transformer/package.json +++ b/experimental/packages/otlp-transformer/package.json @@ -22,7 +22,7 @@ "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", "submodule": "git submodule sync --recursive && git submodule update --init --recursive", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "test:browser": "karma start --single-run", "test:bench": "node test/performance/benchmark/index.js | tee .benchmark-results.txt", "prewatch": "node ../../../scripts/version-update.js", @@ -79,7 +79,6 @@ "nyc": "15.1.0", "protobufjs-cli": "1.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/experimental/packages/propagator-aws-xray-lambda/package.json b/experimental/packages/propagator-aws-xray-lambda/package.json index 38b5a6fd69b..661b61e08ad 100644 --- a/experimental/packages/propagator-aws-xray-lambda/package.json +++ b/experimental/packages/propagator-aws-xray-lambda/package.json @@ -11,7 +11,7 @@ "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", @@ -60,7 +60,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { diff --git a/experimental/packages/sdk-events/package.json b/experimental/packages/sdk-events/package.json index 290f17c9427..5f8265dedfc 100644 --- a/experimental/packages/sdk-events/package.json +++ b/experimental/packages/sdk-events/package.json @@ -35,7 +35,7 @@ "prewatch": "npm run precompile", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "test:browser": "karma start --single-run", "version": "node ../../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -91,7 +91,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/sdk-logs/package.json b/experimental/packages/sdk-logs/package.json index 01c94912ce0..2350cc36683 100644 --- a/experimental/packages/sdk-logs/package.json +++ b/experimental/packages/sdk-logs/package.json @@ -32,7 +32,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "test:browser": "karma start --single-run", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", @@ -94,7 +94,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/experimental/packages/shim-opencensus/package.json b/experimental/packages/shim-opencensus/package.json index bd00f535a98..24fbc34612f 100644 --- a/experimental/packages/shim-opencensus/package.json +++ b/experimental/packages/shim-opencensus/package.json @@ -14,7 +14,7 @@ "compile": "tsc --build", "clean": "tsc --build --clean", "tdd": "npm run test -- --extension ts --watch", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -62,7 +62,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/package-lock.json b/package-lock.json index d018d75d9f6..24b6085f954 100644 --- a/package-lock.json +++ b/package-lock.json @@ -81,7 +81,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "unionfs": "4.5.4", "webpack": "5.89.0" @@ -480,7 +479,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -642,7 +640,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -807,7 +804,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -892,7 +888,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -1069,7 +1064,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -1238,7 +1232,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -1322,7 +1315,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -1497,7 +1489,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -1669,7 +1660,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -1839,7 +1829,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -1923,7 +1912,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -2090,7 +2078,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -2161,7 +2148,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -2249,7 +2235,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -2298,7 +2283,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -2472,7 +2456,6 @@ "nyc": "15.1.0", "semver": "7.5.4", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -2555,7 +2538,6 @@ "request-promise-native": "1.0.9", "sinon": "15.1.2", "superagent": "9.0.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -2641,7 +2623,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -2949,7 +2930,6 @@ "semver": "7.5.4", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -3028,7 +3008,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -3195,7 +3174,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -3256,7 +3234,7 @@ "@opentelemetry/sdk-logs": "0.52.1", "@opentelemetry/sdk-metrics": "1.25.1", "@opentelemetry/sdk-trace-base": "1.25.1", - "protobufjs": "^7.3.2" + "protobufjs": "^7.3.0" }, "devDependencies": { "@opentelemetry/api": "1.9.0", @@ -3276,7 +3254,6 @@ "nyc": "15.1.0", "protobufjs-cli": "1.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -3440,7 +3417,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -3523,7 +3499,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -3732,7 +3707,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -3962,7 +3936,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -9591,13 +9564,6 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "optional": true - }, "node_modules/@types/keyv": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", @@ -29362,122 +29328,6 @@ "node": ">=8" } }, - "node_modules/ts-mocha": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", - "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", - "dev": true, - "dependencies": { - "ts-node": "7.0.1" - }, - "bin": { - "ts-mocha": "bin/ts-mocha" - }, - "engines": { - "node": ">= 6.X.X" - }, - "optionalDependencies": { - "tsconfig-paths": "^3.5.0" - }, - "peerDependencies": { - "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" - } - }, - "node_modules/ts-mocha/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/ts-mocha/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "optional": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/ts-mocha/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ts-mocha/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/ts-mocha/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "optional": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/ts-mocha/node_modules/ts-node": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", - "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", - "dev": true, - "dependencies": { - "arrify": "^1.0.0", - "buffer-from": "^1.1.0", - "diff": "^3.1.0", - "make-error": "^1.1.1", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "source-map-support": "^0.5.6", - "yn": "^2.0.0" - }, - "bin": { - "ts-node": "dist/bin.js" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/ts-mocha/node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "optional": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/ts-mocha/node_modules/yn": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/ts-node": { "version": "10.9.2", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", @@ -31460,7 +31310,6 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -31555,7 +31404,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -31726,7 +31574,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -31890,7 +31737,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -31974,7 +31820,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -32134,7 +31979,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -32211,7 +32055,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -32381,7 +32224,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -32604,7 +32446,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -32771,7 +32612,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -32859,7 +32699,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -33021,7 +32860,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "size-limit": "^11.0.1", - "ts-mocha": "10.0.0", "ts-node": "10.9.2", "typescript": "4.4.4" }, @@ -33090,7 +32928,6 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "engines": { @@ -33165,7 +33002,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -33337,7 +33173,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -36962,7 +36797,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "unionfs": "4.5.4", "webpack": "5.89.0" @@ -37076,7 +36910,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -37188,7 +37021,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -37291,7 +37123,6 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -37362,7 +37193,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -37479,7 +37309,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -37590,7 +37419,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -37648,7 +37476,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -37714,7 +37541,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -37838,7 +37664,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -37955,7 +37780,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -38020,7 +37844,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38134,7 +37957,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -38186,7 +38008,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -38243,7 +38064,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -38308,7 +38128,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38430,7 +38249,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38554,7 +38372,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38682,7 +38499,6 @@ "shimmer": "^1.2.1", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38808,7 +38624,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -38929,7 +38744,6 @@ "nyc": "15.1.0", "semver": "7.5.4", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -38993,7 +38807,6 @@ "semver": "^7.5.2", "sinon": "15.1.2", "superagent": "9.0.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -39060,7 +38873,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -39224,7 +39036,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -39343,7 +39154,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -39457,7 +39267,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -39516,10 +39325,9 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "protobufjs": "7.3.2", + "protobufjs": "^7.3.0", "protobufjs-cli": "1.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -39632,7 +39440,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -39743,7 +39550,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -39791,7 +39597,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -39849,7 +39654,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -39966,7 +39770,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -40120,7 +39923,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -40269,7 +40071,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -40432,7 +40233,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -40557,7 +40357,6 @@ "semver": "7.5.4", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -40618,7 +40417,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, @@ -40732,7 +40530,6 @@ "nyc": "15.1.0", "semver": "^7.5.2", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -40801,7 +40598,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", @@ -41081,7 +40877,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "size-limit": "^11.0.1", - "ts-mocha": "10.0.0", "ts-node": "10.9.2", "typescript": "4.4.4" }, @@ -41138,7 +40933,6 @@ "require-in-the-middle": "^7.1.1", "semver": "^7.5.2", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -41190,7 +40984,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "opentracing": "^0.14.4", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "dependencies": { @@ -41934,13 +41727,6 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "optional": true - }, "@types/keyv": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", @@ -57539,92 +57325,6 @@ } } }, - "ts-mocha": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", - "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", - "dev": true, - "requires": { - "ts-node": "7.0.1", - "tsconfig-paths": "^3.5.0" - }, - "dependencies": { - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "optional": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "optional": true - }, - "ts-node": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", - "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", - "dev": true, - "requires": { - "arrify": "^1.0.0", - "buffer-from": "^1.1.0", - "diff": "^3.1.0", - "make-error": "^1.1.1", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "source-map-support": "^0.5.6", - "yn": "^2.0.0" - } - }, - "tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "optional": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "yn": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", - "dev": true - } - } - }, "ts-node": { "version": "10.9.2", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", diff --git a/packages/opentelemetry-context-async-hooks/package.json b/packages/opentelemetry-context-async-hooks/package.json index 80072e2e087..dacbaad0347 100644 --- a/packages/opentelemetry-context-async-hooks/package.json +++ b/packages/opentelemetry-context-async-hooks/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", @@ -53,7 +53,6 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/packages/opentelemetry-context-zone-peer-dep/package.json b/packages/opentelemetry-context-zone-peer-dep/package.json index 65e3d5a4be1..295eb4e85ea 100644 --- a/packages/opentelemetry-context-zone-peer-dep/package.json +++ b/packages/opentelemetry-context-zone-peer-dep/package.json @@ -77,7 +77,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/packages/opentelemetry-core/package.json b/packages/opentelemetry-core/package.json index cdc94531714..63dc784ddf1 100644 --- a/packages/opentelemetry-core/package.json +++ b/packages/opentelemetry-core/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts --exclude 'test/platform/browser/**/*.ts'", + "test": "nyc mocha test/**/*.test.ts --exclude 'test/platform/browser/**/*.ts'", "test:browser": "karma start --single-run", "tdd": "npm run tdd:node", "tdd:node": "npm run test -- --watch-extensions ts --watch", @@ -84,7 +84,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/packages/opentelemetry-exporter-jaeger/package.json b/packages/opentelemetry-exporter-jaeger/package.json index fc567587e4f..8998e25c59d 100644 --- a/packages/opentelemetry-exporter-jaeger/package.json +++ b/packages/opentelemetry-exporter-jaeger/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", @@ -57,7 +57,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/packages/opentelemetry-exporter-zipkin/package.json b/packages/opentelemetry-exporter-zipkin/package.json index abcc97f65e2..4429a32a8b6 100644 --- a/packages/opentelemetry-exporter-zipkin/package.json +++ b/packages/opentelemetry-exporter-zipkin/package.json @@ -22,7 +22,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "tdd": "npm run test -- --watch-extensions ts --watch", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "version": "node ../../scripts/version-update.js", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", @@ -84,7 +84,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/packages/opentelemetry-propagator-b3/package.json b/packages/opentelemetry-propagator-b3/package.json index fd4ab464432..a7c6664ce0c 100644 --- a/packages/opentelemetry-propagator-b3/package.json +++ b/packages/opentelemetry-propagator-b3/package.json @@ -11,7 +11,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -67,7 +67,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-propagator-b3", diff --git a/packages/opentelemetry-propagator-jaeger/package.json b/packages/opentelemetry-propagator-jaeger/package.json index 47e8aca7040..001436d84b0 100644 --- a/packages/opentelemetry-propagator-jaeger/package.json +++ b/packages/opentelemetry-propagator-jaeger/package.json @@ -9,7 +9,7 @@ "scripts": { "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/index-webpack.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/index-webpack.ts'", "test:browser": "karma start --single-run", "tdd": "npm run tdd:node", "tdd:node": "npm run test -- --watch-extensions ts --watch", @@ -74,7 +74,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/packages/opentelemetry-resources/package.json b/packages/opentelemetry-resources/package.json index b724229ffcc..5ba665163fc 100644 --- a/packages/opentelemetry-resources/package.json +++ b/packages/opentelemetry-resources/package.json @@ -25,7 +25,7 @@ "codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "test:browser": "karma start --single-run", "test:webworker": "karma start karma.worker.js --single-run", "tdd": "npm run test -- --watch-extensions ts --watch", @@ -86,7 +86,6 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/packages/opentelemetry-sdk-trace-base/package.json b/packages/opentelemetry-sdk-trace-base/package.json index 81de14e59db..e93fdb46c1d 100644 --- a/packages/opentelemetry-sdk-trace-base/package.json +++ b/packages/opentelemetry-sdk-trace-base/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "karma start --single-run", "test:webworker": "karma start karma.worker.js --single-run", "test:bench": "node test/performance/benchmark/index.js | tee .benchmark-results.txt", @@ -86,7 +86,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/packages/opentelemetry-sdk-trace-node/package.json b/packages/opentelemetry-sdk-trace-node/package.json index 76c87918aef..ac00fec49b6 100644 --- a/packages/opentelemetry-sdk-trace-node/package.json +++ b/packages/opentelemetry-sdk-trace-node/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", @@ -59,7 +59,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "sinon": "15.1.2", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/packages/opentelemetry-sdk-trace-web/package.json b/packages/opentelemetry-sdk-trace-web/package.json index abe1ec87cd3..41dee3b1721 100644 --- a/packages/opentelemetry-sdk-trace-web/package.json +++ b/packages/opentelemetry-sdk-trace-web/package.json @@ -84,7 +84,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index de5e5a4e0f7..7506e914169 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -18,7 +18,7 @@ "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", "prewatch": "npm run precompile", "peer-api-check": "node ../../scripts/peer-api-check.js", - "size-check": "npm run compile && ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "size-check": "npm run compile && mocha 'test/**/*.test.ts'", "align-api-deps": "node ../../scripts/align-api-deps.js" }, "keywords": [ @@ -65,7 +65,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "size-limit": "^11.0.1", - "ts-mocha": "10.0.0", "ts-node": "10.9.2", "typescript": "4.4.4" }, diff --git a/packages/opentelemetry-shim-opentracing/package.json b/packages/opentelemetry-shim-opentracing/package.json index 9a549302b0e..6568ed85b28 100644 --- a/packages/opentelemetry-shim-opentracing/package.json +++ b/packages/opentelemetry-shim-opentracing/package.json @@ -9,7 +9,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", @@ -54,7 +54,6 @@ "lerna": "6.6.2", "mocha": "10.2.0", "nyc": "15.1.0", - "ts-mocha": "10.0.0", "typescript": "4.4.4" }, "peerDependencies": { diff --git a/packages/propagator-aws-xray/package.json b/packages/propagator-aws-xray/package.json index 2e619d3f10a..0ebae5ae2e6 100644 --- a/packages/propagator-aws-xray/package.json +++ b/packages/propagator-aws-xray/package.json @@ -9,7 +9,7 @@ "scripts": { "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/index-webpack.ts'", + "test": "nyc mocha 'test/**/*.test.ts' --exclude 'test/index-webpack.ts'", "test:browser": "karma start --single-run", "tdd": "npm run tdd:node", "tdd:node": "npm run test -- --watch-extensions ts --watch", @@ -75,7 +75,6 @@ "mocha": "10.2.0", "nyc": "15.1.0", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0" }, diff --git a/packages/sdk-metrics/package.json b/packages/sdk-metrics/package.json index f65e038f161..258c11897d6 100644 --- a/packages/sdk-metrics/package.json +++ b/packages/sdk-metrics/package.json @@ -11,7 +11,7 @@ "prepublishOnly": "npm run compile", "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test": "nyc mocha 'test/**/*.test.ts'", "test:browser": "karma start --single-run", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", @@ -76,7 +76,6 @@ "nyc": "15.1.0", "sinon": "15.1.2", "ts-loader": "9.5.1", - "ts-mocha": "10.0.0", "typescript": "4.4.4", "webpack": "5.89.0", "webpack-cli": "5.1.4", diff --git a/packages/template/package.json b/packages/template/package.json index d8acbbb7265..4682f76aa01 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -38,7 +38,7 @@ "Add these to scripts": { "compile": "tsc --build", "clean": "tsc --build --clean", - "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "test": "nyc mocha test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", @@ -90,8 +90,7 @@ "codecov": "3.8.3", "mocha": "10.0.0", "nyc": "15.1.0", - "sinon": "15.0.0", - "ts-mocha": "10.0.0" + "sinon": "15.0.0" }, "Add these to devDependencies if browser is targeted": { "@types/webpack-env": "1.16.0", From 223fc40fe2e4d19983b6293a801f779e08f92a1b Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Wed, 3 Jul 2024 13:35:20 +0200 Subject: [PATCH 2/2] fixup! chore: drop ts-mocha for mocha and ts-node --- .github/workflows/unit-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index f8f526d73cb..79731c932ab 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -156,7 +156,7 @@ jobs: working-directory: ./api run: | npm install --ignore-scripts - npm install @types/mocha@^7 mocha@^7 ts-loader@^8 ts-mocha@^8 + npm install @types/mocha@^7 mocha@^7 ts-loader@^8 node ../scripts/version-update.js npx tsc --build tsconfig.json tsconfig.esm.json