@skills17/task-config
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -11,2 +11,3 @@ import { TestRun } from '@skills17/test-result'; | ||
private localHistory; | ||
private showPoints; | ||
private serve; | ||
@@ -39,2 +40,3 @@ private points; | ||
isLocalHistoryEnabled(): boolean; | ||
arePointsShown(): boolean; | ||
} |
@@ -14,2 +14,3 @@ "use strict"; | ||
localHistory = false; | ||
showPoints = true; | ||
serve = { | ||
@@ -78,2 +79,3 @@ enabled: false, | ||
this.localHistory = config.localHistory ?? this.localHistory; | ||
this.showPoints = config.showPoints ?? this.showPoints; | ||
this.serve = { ...this.serve, | ||
@@ -130,4 +132,8 @@ ...config.serve | ||
arePointsShown() { | ||
return this.showPoints; | ||
} | ||
} | ||
exports.default = Config; |
{ | ||
"name": "@skills17/task-config", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Parses and validates a task configuration file.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -44,2 +44,3 @@ # skills17/task-config | ||
- `isLocalHistoryEnabled()` | ||
- `arePointsShown()` | ||
@@ -147,2 +148,9 @@ Or directly create a new test run instance (from [`@skills17/test-result`](https://github.com/skills17/test-result)) where you can start recording the tests: | ||
#### `showPoints: boolean` | ||
Default: `true` | ||
If false, points will not be shown in the normal output. | ||
For JSON outputs, they will still be available. | ||
#### `points: Points` | ||
@@ -239,2 +247,3 @@ | ||
"localHistory": false, | ||
"showPoints": true, | ||
"points": { | ||
@@ -241,0 +250,0 @@ "defaultPoints": 1, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22578
371
276