poku 2.7.0 → 2.7.1
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 +6 -2
- package/lib/configs/poku.js +1 -1
- package/lib/services/write.js +2 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -196,6 +196,10 @@ deno run npm:poku
|
|
|
196
196
|
<td><a href="https://poku.io/docs/documentation/helpers/skip">skip</a></td>
|
|
197
197
|
<td>⏭️ Skip tests when necessary.</td>
|
|
198
198
|
</tr>
|
|
199
|
+
<tr>
|
|
200
|
+
<td><a href="https://poku.io/docs/documentation/helpers/only">only</a></td>
|
|
201
|
+
<td>🌌 Debug tests by enabling selective runs.</td>
|
|
202
|
+
</tr>
|
|
199
203
|
<tr>
|
|
200
204
|
<td><a href="https://poku.io/docs/documentation/helpers/processes/get-pids">getPIDs</a></td>
|
|
201
205
|
<td>🕵🏻 Debug processes IDs using ports and port ranges.</td>
|
|
@@ -255,8 +259,8 @@ To see the detailed documentation, please visit the [**Documentation**](https://
|
|
|
255
259
|
**Poku** is [continuously tested](https://github.com/wellwelwel/poku/blob/main/.github/workflows/ci_benchmark.yml) to ensure the following expectations for basic usage:
|
|
256
260
|
|
|
257
261
|
- ~**4x** faster than [**Jest**](https://github.com/jestjs/jest) (v29.7.0)
|
|
258
|
-
- ~**
|
|
259
|
-
- ~**
|
|
262
|
+
- ~**4x** faster than [**Vitest**](https://github.com/vitest-dev/vitest) (v2.1.3)
|
|
263
|
+
- ~**2x** faster than [**Mocha**](https://github.com/mochajs/mocha) (v10.7.3) — _even with test file isolation_
|
|
260
264
|
|
|
261
265
|
> - You can see how the tests are run and compared in the [benchmark](https://github.com/wellwelwel/poku/tree/main/benchmark) directory.
|
|
262
266
|
> - [Comparing **Poku** and native test runners _(discussion)_](https://github.com/wellwelwel/poku/discussions/740).
|
package/lib/configs/poku.js
CHANGED
package/lib/services/write.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Write = void 0;
|
|
4
4
|
const node_process_1 = require("process");
|
|
5
|
+
const columns = Math.max((node_process_1.stdout.columns || 50) - 10, 40);
|
|
5
6
|
exports.Write = {
|
|
6
7
|
log: (data) => node_process_1.stdout.write(`${String(data)}\n`),
|
|
7
8
|
hr: () => {
|
|
8
|
-
const line = '─'.repeat(
|
|
9
|
+
const line = '─'.repeat(columns);
|
|
9
10
|
exports.Write.log(`\n\x1b[2m\x1b[90m${line}\x1b[0m\n`);
|
|
10
11
|
},
|
|
11
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poku",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
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",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"benchmark": "cd benchmark && npm ci && npm start"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@biomejs/biome": "1.9.
|
|
60
|
-
"@types/node": "^22.
|
|
59
|
+
"@biomejs/biome": "1.9.4",
|
|
60
|
+
"@types/node": "^22.8.0",
|
|
61
61
|
"c8": "^10.1.2",
|
|
62
62
|
"jsonc.min": "^1.1.0",
|
|
63
|
-
"monocart-coverage-reports": "^2.
|
|
63
|
+
"monocart-coverage-reports": "^2.11.1",
|
|
64
64
|
"packages-update": "^2.0.0",
|
|
65
65
|
"prettier": "^3.3.3",
|
|
66
66
|
"tsx": "4.19.1",
|
|
67
|
-
"typescript": "^5.6.
|
|
67
|
+
"typescript": "^5.6.3"
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|
|
70
70
|
"🐷",
|