@tapjs/test
Advanced tools
Comparing version 0.0.0-19 to 0.0.0-20
{ | ||
"name": "@tapjs/test", | ||
"version": "0.0.0-19", | ||
"version": "0.0.0-20", | ||
"description": "the pluggable Test class for node-tap", | ||
@@ -57,7 +57,7 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)", | ||
"peerDependencies": { | ||
"@tapjs/core": "0.0.0-19" | ||
"@tapjs/core": "0.0.0-20" | ||
}, | ||
"dependencies": { | ||
"glob": "^10.3.3", | ||
"jackspeak": "^2.3.1", | ||
"jackspeak": "^2.3.3", | ||
"mkdirp": "^3.0.0", | ||
@@ -64,0 +64,0 @@ "sync-content": "^1.0.1", |
@@ -31,3 +31,3 @@ //{{HEADER COMMENT START}} | ||
*/ | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs']) | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs', 'tap']) | ||
//{{FILE TYPES START}} | ||
@@ -71,2 +71,3 @@ //{{FILE TYPES END}} | ||
) | ||
vv.prototype = v.prototype | ||
const nameProp = Reflect.getOwnPropertyDescriptor(v, 'name') | ||
@@ -76,2 +77,3 @@ if (nameProp) { | ||
} | ||
return vv | ||
@@ -287,4 +289,7 @@ } | ||
if (typeof v === 'function') { | ||
if (getCache.has(v)) return getCache.get(v) | ||
const vv: Function = copyFunction<Ext, Opts>(t, plug, v) | ||
getCache.set(p, vv) | ||
// aliases remain aliases | ||
getCache.set(v, vv) | ||
return vv | ||
@@ -470,3 +475,3 @@ } else { | ||
extended.#Class = TestExtended | ||
Object.defineProperty(TestExtended, 'name', { | ||
Object.defineProperty(TestExtended, 'name', { | ||
value: 'Test', | ||
@@ -473,0 +478,0 @@ configurable: true, |
@@ -115,6 +115,2 @@ import { PromiseWithSubtest, TapPlugin, TestBase, TestBaseOpts } from '@tapjs/core'; | ||
invert: { | ||
/** | ||
* Utility type to combine the array of plugins into a single combined | ||
* return type. | ||
*/ | ||
type: string; | ||
@@ -198,2 +194,17 @@ short: string; | ||
}; | ||
}> & import("jackspeak").ConfigSetFromMetaSet<"string", false, { | ||
tsconfig: { | ||
type: string; | ||
description: string; | ||
} & { | ||
type: "string"; | ||
short?: string | undefined; | ||
default?: string | undefined; | ||
description?: string | undefined; | ||
hint?: string | undefined; | ||
validate?: ((v: any) => v is string) | undefined; | ||
} & { | ||
multiple?: false | undefined; | ||
delim?: undefined; | ||
}; | ||
}>>; | ||
@@ -200,0 +211,0 @@ /** |
@@ -56,3 +56,3 @@ "use strict"; | ||
*/ | ||
exports.testFileExtensions = new Set(['js', 'cjs', 'mjs']); | ||
exports.testFileExtensions = new Set(['js', 'cjs', 'mjs', 'tap']); | ||
//{{FILE TYPES START}} | ||
@@ -86,2 +86,3 @@ exports.testFileExtensions.add("ts"); | ||
const vv = Object.assign(Object.assign(f, v), copyToString(v), copyInspect(v)); | ||
vv.prototype = v.prototype; | ||
const nameProp = Reflect.getOwnPropertyDescriptor(v, 'name'); | ||
@@ -155,2 +156,6 @@ if (nameProp) { | ||
} | ||
const config_Plugin_typescript_1 = Plugin_typescript.config["tsconfig"]; | ||
if (!(0, jackspeak_1.isConfigOption)(config_Plugin_typescript_1, "string", false)) { | ||
throw new Error("Invalid config option 'tsconfig' defined in plugin: '@tapjs/typescript'"); | ||
} | ||
return jack | ||
@@ -167,3 +172,4 @@ .heading("From plugin: @tapjs/filter") | ||
.heading("From plugin: @tapjs/typescript") | ||
.flag({ "typecheck": config_Plugin_typescript_0 }); | ||
.flag({ "typecheck": config_Plugin_typescript_0 }) | ||
.opt({ "tsconfig": config_Plugin_typescript_1 }); | ||
}; | ||
@@ -280,4 +286,8 @@ exports.config = config; | ||
if (typeof v === 'function') { | ||
if (getCache.has(v)) | ||
return getCache.get(v); | ||
const vv = copyFunction(t, plug, v); | ||
getCache.set(p, vv); | ||
// aliases remain aliases | ||
getCache.set(v, vv); | ||
return vv; | ||
@@ -284,0 +294,0 @@ } |
@@ -115,6 +115,2 @@ import { PromiseWithSubtest, TapPlugin, TestBase, TestBaseOpts } from '@tapjs/core'; | ||
invert: { | ||
/** | ||
* Utility type to combine the array of plugins into a single combined | ||
* return type. | ||
*/ | ||
type: string; | ||
@@ -198,2 +194,17 @@ short: string; | ||
}; | ||
}> & import("jackspeak").ConfigSetFromMetaSet<"string", false, { | ||
tsconfig: { | ||
type: string; | ||
description: string; | ||
} & { | ||
type: "string"; | ||
short?: string | undefined; | ||
default?: string | undefined; | ||
description?: string | undefined; | ||
hint?: string | undefined; | ||
validate?: ((v: any) => v is string) | undefined; | ||
} & { | ||
multiple?: false | undefined; | ||
delim?: undefined; | ||
}; | ||
}>>; | ||
@@ -200,0 +211,0 @@ /** |
@@ -30,3 +30,3 @@ //{{HEADER COMMENT START}} | ||
*/ | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs']); | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs', 'tap']); | ||
//{{FILE TYPES START}} | ||
@@ -60,2 +60,3 @@ testFileExtensions.add("ts"); | ||
const vv = Object.assign(Object.assign(f, v), copyToString(v), copyInspect(v)); | ||
vv.prototype = v.prototype; | ||
const nameProp = Reflect.getOwnPropertyDescriptor(v, 'name'); | ||
@@ -129,2 +130,6 @@ if (nameProp) { | ||
} | ||
const config_Plugin_typescript_1 = Plugin_typescript.config["tsconfig"]; | ||
if (!isConfigOption(config_Plugin_typescript_1, "string", false)) { | ||
throw new Error("Invalid config option 'tsconfig' defined in plugin: '@tapjs/typescript'"); | ||
} | ||
return jack | ||
@@ -141,3 +146,4 @@ .heading("From plugin: @tapjs/filter") | ||
.heading("From plugin: @tapjs/typescript") | ||
.flag({ "typecheck": config_Plugin_typescript_0 }); | ||
.flag({ "typecheck": config_Plugin_typescript_0 }) | ||
.opt({ "tsconfig": config_Plugin_typescript_1 }); | ||
}; | ||
@@ -253,4 +259,8 @@ //{{PLUGINS CONFIG END}} | ||
if (typeof v === 'function') { | ||
if (getCache.has(v)) | ||
return getCache.get(v); | ||
const vv = copyFunction(t, plug, v); | ||
getCache.set(p, vv); | ||
// aliases remain aliases | ||
getCache.set(v, vv); | ||
return vv; | ||
@@ -257,0 +267,0 @@ } |
@@ -43,3 +43,3 @@ //{{HEADER COMMENT START}} | ||
*/ | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs']) | ||
export const testFileExtensions = new Set(['js', 'cjs', 'mjs', 'tap']) | ||
//{{FILE TYPES START}} | ||
@@ -88,2 +88,3 @@ testFileExtensions.add("ts") | ||
) | ||
vv.prototype = v.prototype | ||
const nameProp = Reflect.getOwnPropertyDescriptor(v, 'name') | ||
@@ -93,2 +94,3 @@ if (nameProp) { | ||
} | ||
return vv | ||
@@ -258,2 +260,6 @@ } | ||
} | ||
const config_Plugin_typescript_1 = Plugin_typescript.config["tsconfig"] | ||
if (!isConfigOption(config_Plugin_typescript_1, "string", false)) { | ||
throw new Error("Invalid config option 'tsconfig' defined in plugin: '@tapjs/typescript'") | ||
} | ||
return jack | ||
@@ -271,2 +277,3 @@ .heading("From plugin: @tapjs/filter") | ||
.flag({ "typecheck": config_Plugin_typescript_0 }) | ||
.opt({ "tsconfig": config_Plugin_typescript_1 }) | ||
} | ||
@@ -413,4 +420,7 @@ //{{PLUGINS CONFIG END}} | ||
if (typeof v === 'function') { | ||
if (getCache.has(v)) return getCache.get(v) | ||
const vv: Function = copyFunction<Ext, Opts>(t, plug, v) | ||
getCache.set(p, vv) | ||
// aliases remain aliases | ||
getCache.set(v, vv) | ||
return vv | ||
@@ -596,3 +606,3 @@ } else { | ||
extended.#Class = TestExtended | ||
Object.defineProperty(TestExtended, 'name', { | ||
Object.defineProperty(TestExtended, 'name', { | ||
value: 'Test', | ||
@@ -599,0 +609,0 @@ configurable: true, |
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
202389
3012
+ Added@tapjs/core@0.0.0-20(transitive)
- Removed@tapjs/core@0.0.0-19(transitive)
Updatedjackspeak@^2.3.3