Skip to content

Commit

Permalink
test: test multiple versions of koa (open-telemetry#783)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <[email protected]>
  • Loading branch information
rauno56 and vmarchaud authored Dec 11, 2021
1 parent 9cef8a7 commit c0d31ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions plugins/node/opentelemetry-instrumentation-koa/.tav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
koa:
# Testing ^2.7.0 covers at least 97% of the downloaded koa versions
versions: "^2.7.0"
commands: npm run test
4 changes: 3 additions & 1 deletion plugins/node/opentelemetry-instrumentation-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "open-telemetry/opentelemetry-js-contrib",
"scripts": {
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts'",
"test-all-versions": "tav",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"tdd": "yarn test -- --watch-extensions ts --watch",
"clean": "rimraf build/*",
Expand Down Expand Up @@ -61,6 +62,7 @@
"mocha": "7.2.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"test-all-versions": "^5.0.1",
"ts-mocha": "8.0.0",
"typescript": "4.3.5"
},
Expand All @@ -71,4 +73,4 @@
"@types/koa": "2.13.4",
"@types/koa__router": "8.0.7"
}
}
}

0 comments on commit c0d31ce

Please sign in to comment.