test: add tests for get-used-version task

This commit is contained in:
Karl-Philipp Wulfert
2019-07-05 15:25:06 +02:00
parent 067a2011c0
commit 92c9604f8d
4 changed files with 1831 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
"prepublishOnly": "npm ci && npm run build",
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"test": "nyc mocha --require ts-node/register --ui mocha-typescript 'test/**/*.spec.ts'",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
},
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
@@ -33,14 +34,24 @@
"@types/glob": "7.1.1",
"@types/mustache": "0.8.32",
"@types/node": "10.14.12",
"@types/tmp": "0.1.0",
"commander": "2.20.0",
"glob": "7.1.4",
"moment": "2.24.0",
"mustache": "3.0.1"
"mustache": "3.0.1",
"tmp": "0.1.0"
},
"devDependencies": {
"@openstapps/configuration": "0.21.0",
"@types/chai": "4.1.7",
"@types/chai-as-promised": "7.1.0",
"@types/mocha": "5.2.7",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"conventional-changelog-cli": "2.0.21",
"mocha": "6.1.4",
"mocha-typescript": "1.1.17",
"nyc": "14.1.1",
"prepend-file-cli": "1.0.6",
"rimraf": "2.6.3",
"ts-node": "8.3.0",
@@ -52,5 +63,27 @@
"typings": "lib/common.d.ts",
"bin": {
"openstapps-projectmanagement": "lib/cli.js"
},
"nyc": {
"all": true,
"branches": 95,
"check-coverage": true,
"include": [
"src/tasks/get-used-version.ts"
],
"extension": [
".ts"
],
"functions": 95,
"lines": 95,
"per-file": true,
"reporter": [
"html",
"text-summary"
],
"require": [
"ts-node/register"
],
"statements": 95
}
}