Comparing version 2.6.2 to 2.6.3-canary.14a1517
@@ -10,2 +10,2 @@ "use strict"; | ||
}; | ||
exports.VERSION = '2.6.2'; | ||
exports.VERSION = '2.6.3-canary.14a1517'; |
export declare function todo(message: string): void; | ||
export declare function todo(message: string, _cb?: () => Promise<unknown>): Promise<void>; | ||
export declare function todo(message: string, _cb?: () => unknown): void; | ||
export declare function skip(message: string, _cb: () => Promise<unknown>): Promise<void>; | ||
export declare function skip(message: string, _cb: () => unknown): void; | ||
export declare function skip(_cb: () => Promise<unknown>): Promise<void>; | ||
export declare function skip(_cb: () => unknown): void; | ||
export declare function todo(message: string, cb?: () => Promise<unknown>): Promise<void>; | ||
export declare function todo(message: string, cb?: () => unknown): void; | ||
export declare function skip(message: string, cb: () => Promise<unknown>): Promise<void>; | ||
export declare function skip(message: string, cb: () => unknown): void; | ||
export declare function skip(cb: () => Promise<unknown>): Promise<void>; | ||
export declare function skip(cb: () => unknown): void; |
@@ -10,28 +10,6 @@ "use strict"; | ||
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`); | ||
if (typeof _cb === 'function') { | ||
const isAsync = _cb.constructor.name === 'AsyncFunction'; | ||
if (isAsync) | ||
return await Promise.resolve(); | ||
return; | ||
} | ||
} | ||
async function skip(messageOrCb, _cb) { | ||
const message = (typeof messageOrCb === 'string' && messageOrCb) || 'Skipping'; | ||
const message = typeof messageOrCb === 'string' ? messageOrCb : 'Skipping'; | ||
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`◯ ${message}`).info().bold()}`); | ||
if (typeof messageOrCb === 'function') { | ||
const isAsync = messageOrCb.constructor.name === 'AsyncFunction'; | ||
if (isAsync) | ||
return await Promise.resolve(); | ||
return; | ||
} | ||
if (typeof _cb === 'function') { | ||
const isAsync = _cb.constructor.name === 'AsyncFunction'; | ||
if (isAsync) | ||
return await Promise.resolve(); | ||
return; | ||
} | ||
} |
{ | ||
"name": "poku", | ||
"version": "2.6.2", | ||
"version": "2.6.3-canary.14a1517", | ||
"description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/modules/index.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
164050
3401
1