poku 2.6.0 → 2.6.1-canary.6e8a583

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/README.md CHANGED
@@ -258,7 +258,8 @@ To see the detailed documentation, please visit the [**Documentation**](https://
258
258
  - ~**3x** faster than [**Vitest**](https://github.com/vitest-dev/vitest) (v1.6.0)
259
259
  - ~**1x** faster than [**Mocha**](https://github.com/mochajs/mocha) (v10.4.0) + [**Chai**](https://github.com/chaijs/chai) (v5.1.1)
260
260
 
261
- > You can see how the tests are run and compared in the [benchmark](https://github.com/wellwelwel/poku/tree/main/benchmark) directory.
261
+ > - You can see how the tests are run and compared in the [benchmark](https://github.com/wellwelwel/poku/tree/main/benchmark) directory.
262
+ > - [Comparing **Poku** and native test runners _(discussion)_](https://github.com/wellwelwel/poku/discussions/740).
262
263
 
263
264
  ---
264
265
 
@@ -7,4 +7,4 @@ exports.results = {
7
7
  skip: 0,
8
8
  todo: 0,
9
9
  };
10
- exports.VERSION = '2.6.0';
10
+ exports.VERSION = '2.6.1-canary.6e8a583';
@@ -1,4 +1,5 @@
1
1
  import type { DescribeOptions } from '../../@types/describe.js';
2
+ import { skip } from './modifiers.js';
2
3
  declare function describeCore(title: string, cb: () => Promise<unknown>): Promise<void>;
3
4
  declare function describeCore(title: string, cb: () => unknown): void;
4
5
  declare function describeCore(cb: () => Promise<unknown>): Promise<void>;
@@ -6,6 +7,6 @@ declare function describeCore(cb: () => unknown): unknown;
6
7
  declare function describeCore(title: string, options?: DescribeOptions): void;
7
8
  export declare const describe: typeof describeCore & {
8
9
  todo: (message: string, _cb?: () => unknown) => boolean;
9
- skip: (message: string, _cb?: () => unknown) => boolean;
10
+ skip: typeof skip;
10
11
  };
11
12
  export {};
@@ -5,8 +5,7 @@ const node_process_1 = require("process");
5
5
  const format_js_1 = require("../../services/format.js");
6
6
  const write_js_1 = require("../../services/write.js");
7
7
  const indentation_js_1 = require("../../configs/indentation.js");
8
- const todo_js_1 = require("./it/todo.js");
9
- const skip_js_1 = require("./it/skip.js");
8
+ const modifiers_js_1 = require("./modifiers.js");
10
9
  async function describeCore(arg1, arg2) {
11
10
  let title;
12
11
  let cb;
@@ -48,6 +47,6 @@ async function describeCore(arg1, arg2) {
48
47
  write_js_1.Write.log(`${(0, format_js_1.format)(`● ${title}`).success().bold()} ${(0, format_js_1.format)(`› ${total}ms`).success().dim()}`);
49
48
  }
50
49
  exports.describe = Object.assign(describeCore, {
51
- todo: todo_js_1.todo,
52
- skip: skip_js_1.skip,
50
+ todo: modifiers_js_1.todo,
51
+ skip: modifiers_js_1.skip,
53
52
  });
@@ -1,9 +1,10 @@
1
+ import { skip } from '../modifiers.js';
1
2
  declare function itCore(message: string, cb: () => Promise<unknown>): Promise<void>;
2
3
  declare function itCore(message: string, cb: () => unknown): void;
3
4
  declare function itCore(cb: () => Promise<unknown>): Promise<void>;
4
5
  declare function itCore(cb: () => unknown): void;
5
6
  export declare const it: typeof itCore & {
6
7
  todo: (message: string, _cb?: () => unknown) => boolean;
7
- skip: (message: string, _cb?: () => unknown) => boolean;
8
+ skip: typeof skip;
8
9
  };
9
10
  export {};
@@ -6,8 +6,7 @@ const each_js_1 = require("../../../configs/each.js");
6
6
  const indentation_js_1 = require("../../../configs/indentation.js");
7
7
  const format_js_1 = require("../../../services/format.js");
8
8
  const write_js_1 = require("../../../services/write.js");
9
- const todo_js_1 = require("./todo.js");
10
- const skip_js_1 = require("./skip.js");
9
+ const modifiers_js_1 = require("../modifiers.js");
11
10
  async function itCore(...args) {
12
11
  try {
13
12
  let message;
@@ -58,6 +57,6 @@ async function itCore(...args) {
58
57
  }
59
58
  }
60
59
  exports.it = Object.assign(itCore, {
61
- todo: todo_js_1.todo,
62
- skip: skip_js_1.skip,
60
+ todo: modifiers_js_1.todo,
61
+ skip: modifiers_js_1.skip,
63
62
  });
@@ -0,0 +1,3 @@
1
+ export declare const todo: (message: string, _cb?: () => unknown) => boolean;
2
+ export declare function skip(message: string, _cb: () => unknown): void;
3
+ export declare function skip(_cb: () => unknown): void;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.todo = void 0;
4
+ exports.skip = skip;
5
+ const write_js_1 = require("../../services/write.js");
6
+ const indentation_js_1 = require("../../configs/indentation.js");
7
+ const format_js_1 = require("../../services/format.js");
8
+ const todo = (message, _cb) => write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`);
9
+ exports.todo = todo;
10
+ function skip(messageOrCb, _cb) {
11
+ const message = (typeof messageOrCb === 'string' && messageOrCb) || 'Skipping';
12
+ write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`◯ ${message}`).info().bold()}`);
13
+ }
@@ -5,5 +5,5 @@ export declare const test: {
5
5
  (cb: () => unknown): void;
6
6
  } & {
7
7
  todo: (message: string, _cb?: () => unknown) => boolean;
8
- skip: (message: string, _cb?: () => unknown) => boolean;
8
+ skip: typeof import("./modifiers.js").skip;
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poku",
3
- "version": "2.6.0",
3
+ "version": "2.6.1-canary.6e8a583",
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",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "1.8.3",
60
- "@types/node": "^22.5.3",
60
+ "@types/node": "^22.5.4",
61
61
  "c8": "^10.1.2",
62
62
  "jsonc.min": "^1.1.0",
63
63
  "monocart-coverage-reports": "^2.10.3",
@@ -1 +0,0 @@
1
- export declare const skip: (message: string, _cb?: () => unknown) => boolean;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.skip = void 0;
4
- const write_js_1 = require("../../../services/write.js");
5
- const indentation_js_1 = require("../../../configs/indentation.js");
6
- const format_js_1 = require("../../../services/format.js");
7
- const skip = (message, _cb) => write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`◯ ${message}`).info().bold()}`);
8
- exports.skip = skip;
@@ -1 +0,0 @@
1
- export declare const todo: (message: string, _cb?: () => unknown) => boolean;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.todo = void 0;
4
- const write_js_1 = require("../../../services/write.js");
5
- const indentation_js_1 = require("../../../configs/indentation.js");
6
- const format_js_1 = require("../../../services/format.js");
7
- const todo = (message, _cb) => write_js_1.Write.log(`${indentation_js_1.indentation.hasDescribe ? ' ' : ''}${(0, format_js_1.format)(`● ${message}`).cyan().bold()}`);
8
- exports.todo = todo;