Comparing version 2.6.2-canary.d9851de to 2.6.2
@@ -10,2 +10,2 @@ "use strict"; | ||
}; | ||
exports.VERSION = '2.6.2-canary.d9851de'; | ||
exports.VERSION = '2.6.2'; |
import type { DescribeOptions } from '../../@types/describe.js'; | ||
import { skip } from './modifiers.js'; | ||
import { todo, skip } from './modifiers.js'; | ||
declare function describeCore(title: string, cb: () => Promise<unknown>): Promise<void>; | ||
@@ -9,5 +9,5 @@ declare function describeCore(title: string, cb: () => unknown): void; | ||
export declare const describe: typeof describeCore & { | ||
todo: (message: string, _cb?: () => unknown) => boolean; | ||
todo: typeof todo; | ||
skip: typeof skip; | ||
}; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import { skip } from '../modifiers.js'; | ||
import { todo, skip } from '../modifiers.js'; | ||
declare function itCore(message: string, cb: () => Promise<unknown>): Promise<void>; | ||
@@ -7,5 +7,5 @@ declare function itCore(message: string, cb: () => unknown): void; | ||
export declare const it: typeof itCore & { | ||
todo: (message: string, _cb?: () => unknown) => boolean; | ||
todo: typeof todo; | ||
skip: typeof skip; | ||
}; | ||
export {}; |
@@ -1,2 +0,4 @@ | ||
export declare const todo: (message: string, _cb?: () => unknown) => boolean; | ||
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>; | ||
@@ -3,0 +5,0 @@ export declare function skip(message: string, _cb: () => unknown): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.todo = void 0; | ||
exports.todo = todo; | ||
exports.skip = skip; | ||
@@ -8,4 +8,13 @@ const write_js_1 = require("../../services/write.js"); | ||
const format_js_1 = require("../../services/format.js"); | ||
const todo = (message, _cb) => write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`); | ||
exports.todo = todo; | ||
async function todo(message, _cb) { | ||
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) { | ||
@@ -12,0 +21,0 @@ const message = (typeof messageOrCb === 'string' && messageOrCb) || 'Skipping'; |
@@ -7,4 +7,4 @@ export declare const test: { | ||
} & { | ||
todo: (message: string, _cb?: () => unknown) => boolean; | ||
todo: typeof import("./modifiers.js").todo; | ||
skip: typeof import("./modifiers.js").skip; | ||
}; |
{ | ||
"name": "poku", | ||
"version": "2.6.2-canary.d9851de", | ||
"version": "2.6.2", | ||
"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
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
164636
3419
0