poku 2.6.2 → 2.6.3-canary.d4b7b64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/configs/poku.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.strict = void 0;
|
|
7
|
-
const strict_1 = __importDefault(require("assert/strict"));
|
|
8
4
|
const assert_js_1 = require("../../builders/assert.js");
|
|
9
|
-
|
|
5
|
+
const get_runtime_js_1 = require("../../parsers/get-runtime.js");
|
|
6
|
+
|
|
7
|
+
const nodeAssert = !get_runtime_js_1.nodeVersion || get_runtime_js_1.nodeVersion >= 16
|
|
8
|
+
? require("assert/strict")
|
|
9
|
+
: require("assert");
|
|
10
|
+
exports.strict = (0, assert_js_1.createAssert)(nodeAssert);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function todo(message: string): void;
|
|
2
|
-
export declare function todo(message: string,
|
|
3
|
-
export declare function todo(message: string,
|
|
4
|
-
export declare function skip(message: string,
|
|
5
|
-
export declare function skip(message: string,
|
|
6
|
-
export declare function skip(
|
|
7
|
-
export declare function skip(
|
|
2
|
+
export declare function todo(message: string, cb?: () => Promise<unknown>): Promise<void>;
|
|
3
|
+
export declare function todo(message: string, cb?: () => unknown): void;
|
|
4
|
+
export declare function skip(message: string, cb: () => Promise<unknown>): Promise<void>;
|
|
5
|
+
export declare function skip(message: string, cb: () => unknown): void;
|
|
6
|
+
export declare function skip(cb: () => Promise<unknown>): Promise<void>;
|
|
7
|
+
export declare function skip(cb: () => unknown): void;
|
|
@@ -7,30 +7,8 @@ const indentation_js_1 = require("../../configs/indentation.js");
|
|
|
7
7
|
const format_js_1 = require("../../services/format.js");
|
|
8
8
|
async function todo(message, _cb) {
|
|
9
9
|
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`);
|
|
10
|
-
|
|
11
|
-
if (typeof _cb === 'function') {
|
|
12
|
-
const isAsync = _cb.constructor.name === 'AsyncFunction';
|
|
13
|
-
if (isAsync)
|
|
14
|
-
return await Promise.resolve();
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
10
|
}
|
|
19
11
|
async function skip(messageOrCb, _cb) {
|
|
20
|
-
const message =
|
|
12
|
+
const message = typeof messageOrCb === 'string' ? messageOrCb : 'Skipping';
|
|
21
13
|
write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`◯ ${message}`).info().bold()}`);
|
|
22
|
-
|
|
23
|
-
if (typeof messageOrCb === 'function') {
|
|
24
|
-
const isAsync = messageOrCb.constructor.name === 'AsyncFunction';
|
|
25
|
-
if (isAsync)
|
|
26
|
-
return await Promise.resolve();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (typeof _cb === 'function') {
|
|
30
|
-
const isAsync = _cb.constructor.name === 'AsyncFunction';
|
|
31
|
-
if (isAsync)
|
|
32
|
-
return await Promise.resolve();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poku",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3-canary.d4b7b64",
|
|
4
4
|
"description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.",
|
|
5
5
|
"main": "./lib/modules/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"packages-update": "^2.0.0",
|
|
65
65
|
"prettier": "^3.3.3",
|
|
66
66
|
"tsx": "4.19.0",
|
|
67
|
-
"typescript": "^5.
|
|
67
|
+
"typescript": "^5.6.2"
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|
|
70
70
|
"🐷",
|