From e7c93b17502b4e96120c1dbafdc0b4b597bdbcf7 Mon Sep 17 00:00:00 2001 From: Niklas Lochschmidt Date: Tue, 27 Feb 2024 08:52:06 +0100 Subject: [PATCH] chore(instrumentation-hapi): setup tav --- package-lock.json | 2 ++ plugins/node/opentelemetry-instrumentation-hapi/.tav.yml | 7 +++++++ .../node/opentelemetry-instrumentation-hapi/package.json | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 plugins/node/opentelemetry-instrumentation-hapi/.tav.yml diff --git a/package-lock.json b/package-lock.json index bc8de58242..0f4a2c6ed3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35815,6 +35815,7 @@ "mocha": "7.2.0", "nyc": "15.1.0", "rimraf": "5.0.5", + "test-all-versions": "6.0.0", "ts-mocha": "10.0.0", "typescript": "4.4.4" }, @@ -44895,6 +44896,7 @@ "mocha": "7.2.0", "nyc": "15.1.0", "rimraf": "5.0.5", + "test-all-versions": "6.0.0", "ts-mocha": "10.0.0", "typescript": "4.4.4" } diff --git a/plugins/node/opentelemetry-instrumentation-hapi/.tav.yml b/plugins/node/opentelemetry-instrumentation-hapi/.tav.yml new file mode 100644 index 0000000000..995b6c88d1 --- /dev/null +++ b/plugins/node/opentelemetry-instrumentation-hapi/.tav.yml @@ -0,0 +1,7 @@ +"@hapi/hapi": + - versions: "^19.2.0 || ^18.4.1 || ^17.9.0" + node: ">=14 <16" + commands: npm test + - versions: "^20.3.0" + node: ">=14" + commands: npm test diff --git a/plugins/node/opentelemetry-instrumentation-hapi/package.json b/plugins/node/opentelemetry-instrumentation-hapi/package.json index 3e851926ab..843c5d890a 100644 --- a/plugins/node/opentelemetry-instrumentation-hapi/package.json +++ b/plugins/node/opentelemetry-instrumentation-hapi/package.json @@ -7,6 +7,7 @@ "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", + "test-all-versions": "tav", "tdd": "yarn test -- --watch-extensions ts --watch", "clean": "rimraf build/*", "lint": "eslint . --ext .ts", @@ -52,6 +53,7 @@ "mocha": "7.2.0", "nyc": "15.1.0", "rimraf": "5.0.5", + "test-all-versions": "6.0.0", "ts-mocha": "10.0.0", "typescript": "4.4.4" },