diff --git a/package-lock.json b/package-lock.json index 6137a2aa53..569411f967 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35594,6 +35594,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" }, @@ -43885,6 +43886,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" },