@tapjs/config
Advanced tools
Comparing version 2.4.15 to 2.4.16
@@ -81,5 +81,3 @@ /** | ||
short: string; | ||
description: string; /** | ||
* Load configuration fields exported by active plugins | ||
*/ | ||
description: string; | ||
nodeArgs: (v: boolean) => string[]; | ||
@@ -89,6 +87,3 @@ } & { | ||
short?: string | undefined; | ||
default?: boolean | undefined; /** | ||
* load the file, and write the fields in data. If the file is not present, | ||
* create it. | ||
*/ | ||
default?: boolean | undefined; | ||
description?: string | undefined; | ||
@@ -159,5 +154,3 @@ hint?: undefined; | ||
short?: string | undefined; | ||
default?: boolean | undefined; /** | ||
* Read configuration from a yaml .taprc file | ||
*/ | ||
default?: boolean | undefined; | ||
description?: string | undefined; | ||
@@ -164,0 +157,0 @@ hint?: undefined; |
@@ -93,3 +93,11 @@ "use strict"; | ||
get(k) { | ||
return this.parse().values[k]; | ||
const value = this.parse().values[k]; | ||
// special case: if --disable-coverage is set, then default | ||
// --allow-empty-coverage to true, so we don't get unuseful failures. | ||
if (k === 'allow-empty-coverage' && value === undefined) { | ||
const disabled = this.get('disable-coverage'); | ||
if (disabled) | ||
return true; | ||
} | ||
return value; | ||
} | ||
@@ -96,0 +104,0 @@ /** |
@@ -401,4 +401,5 @@ "use strict"; | ||
This will always result in a \`# No coverage generated\` | ||
message being printed, and will cause the test run to exit | ||
in error unless \`allow-empty-coverage\` is also set. | ||
message being printed. If this flag is set, then | ||
\`--allow-empty-coverage\` will default to \`true\`, | ||
because we do not expect to get any coverage. | ||
@@ -405,0 +406,0 @@ WARNING: tests that do not produce coverage are |
@@ -1,1 +0,3 @@ | ||
{"type":"commonjs"} | ||
{ | ||
"type": "commonjs" | ||
} |
@@ -81,5 +81,3 @@ /** | ||
short: string; | ||
description: string; /** | ||
* Load configuration fields exported by active plugins | ||
*/ | ||
description: string; | ||
nodeArgs: (v: boolean) => string[]; | ||
@@ -89,6 +87,3 @@ } & { | ||
short?: string | undefined; | ||
default?: boolean | undefined; /** | ||
* load the file, and write the fields in data. If the file is not present, | ||
* create it. | ||
*/ | ||
default?: boolean | undefined; | ||
description?: string | undefined; | ||
@@ -159,5 +154,3 @@ hint?: undefined; | ||
short?: string | undefined; | ||
default?: boolean | undefined; /** | ||
* Read configuration from a yaml .taprc file | ||
*/ | ||
default?: boolean | undefined; | ||
description?: string | undefined; | ||
@@ -164,0 +157,0 @@ hint?: undefined; |
@@ -87,3 +87,11 @@ /** | ||
get(k) { | ||
return this.parse().values[k]; | ||
const value = this.parse().values[k]; | ||
// special case: if --disable-coverage is set, then default | ||
// --allow-empty-coverage to true, so we don't get unuseful failures. | ||
if (k === 'allow-empty-coverage' && value === undefined) { | ||
const disabled = this.get('disable-coverage'); | ||
if (disabled) | ||
return true; | ||
} | ||
return value; | ||
} | ||
@@ -90,0 +98,0 @@ /** |
@@ -399,4 +399,5 @@ /** | ||
This will always result in a \`# No coverage generated\` | ||
message being printed, and will cause the test run to exit | ||
in error unless \`allow-empty-coverage\` is also set. | ||
message being printed. If this flag is set, then | ||
\`--allow-empty-coverage\` will default to \`true\`, | ||
because we do not expect to get any coverage. | ||
@@ -403,0 +404,0 @@ WARNING: tests that do not produce coverage are |
@@ -1,1 +0,3 @@ | ||
{"type":"module"} | ||
{ | ||
"type": "module" | ||
} |
{ | ||
"name": "@tapjs/config", | ||
"version": "2.4.15", | ||
"version": "2.4.16", | ||
"description": "Utility loading and managing tap configuration", | ||
@@ -47,9 +47,9 @@ "tshy": { | ||
"walk-up-path": "^3.0.1", | ||
"@tapjs/core": "1.5.0", | ||
"@tapjs/test": "1.4.0", | ||
"@tapjs/core": "1.5.1", | ||
"@tapjs/test": "1.4.1", | ||
"tap-yaml": "2.2.1" | ||
}, | ||
"peerDependencies": { | ||
"@tapjs/core": "1.5.0", | ||
"@tapjs/test": "1.4.0" | ||
"@tapjs/core": "1.5.1", | ||
"@tapjs/test": "1.4.1" | ||
}, | ||
@@ -56,0 +56,0 @@ "tap": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
266302
3311
+ Added@tapjs/after@1.1.19(transitive)
+ Added@tapjs/after-each@1.1.19(transitive)
+ Added@tapjs/asserts@1.1.19(transitive)
+ Added@tapjs/before@1.1.19(transitive)
+ Added@tapjs/before-each@1.1.19(transitive)
+ Added@tapjs/core@1.5.1(transitive)
+ Added@tapjs/filter@1.2.19(transitive)
+ Added@tapjs/fixture@1.2.19(transitive)
+ Added@tapjs/intercept@1.2.19(transitive)
+ Added@tapjs/mock@1.3.1(transitive)
+ Added@tapjs/node-serialize@1.3.1(transitive)
+ Added@tapjs/snapshot@1.2.19(transitive)
+ Added@tapjs/spawn@1.1.19(transitive)
+ Added@tapjs/stdin@1.1.19(transitive)
+ Added@tapjs/test@1.4.1(transitive)
+ Added@tapjs/typescript@1.4.1(transitive)
+ Added@tapjs/worker@1.1.19(transitive)
- Removed@tapjs/after@1.1.18(transitive)
- Removed@tapjs/after-each@1.1.18(transitive)
- Removed@tapjs/asserts@1.1.18(transitive)
- Removed@tapjs/before@1.1.18(transitive)
- Removed@tapjs/before-each@1.1.18(transitive)
- Removed@tapjs/core@1.5.0(transitive)
- Removed@tapjs/filter@1.2.18(transitive)
- Removed@tapjs/fixture@1.2.18(transitive)
- Removed@tapjs/intercept@1.2.18(transitive)
- Removed@tapjs/mock@1.3.0(transitive)
- Removed@tapjs/node-serialize@1.3.0(transitive)
- Removed@tapjs/snapshot@1.2.18(transitive)
- Removed@tapjs/spawn@1.1.18(transitive)
- Removed@tapjs/stdin@1.1.18(transitive)
- Removed@tapjs/test@1.4.0(transitive)
- Removed@tapjs/typescript@1.4.0(transitive)
- Removed@tapjs/worker@1.1.18(transitive)
Updated@tapjs/core@1.5.1
Updated@tapjs/test@1.4.1