@git.zone/tstest 3.6.5 โ 3.6.6
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/tstest',
|
|
6
|
-
version: '3.6.
|
|
6
|
+
version: '3.6.6',
|
|
7
7
|
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxrQkFBa0I7SUFDeEIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLGtKQUFrSjtDQUNoSyxDQUFBIn0=
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* autocreated commitinfo by @push.rocks/commitinfo
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
|
-
name: '@
|
|
6
|
-
version: '6.
|
|
7
|
-
description: '
|
|
5
|
+
name: '@git.zone/tstest/tapbundle',
|
|
6
|
+
version: '3.6.5',
|
|
7
|
+
description: 'Core TAP testing framework with enhanced assertions and lifecycle hooks.'
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfdGFwYnVuZGxlLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNEJBQTRCO0lBQ2xDLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSwwRUFBMEU7Q0FDeEYsQ0FBQSJ9
|
|
@@ -78,7 +78,7 @@ export declare class TapTools {
|
|
|
78
78
|
*/
|
|
79
79
|
waitForTimeout(timeMilliArg: number): Promise<void>;
|
|
80
80
|
returnError(throwingFuncArg: IPromiseFunc): Promise<Error>;
|
|
81
|
-
defer(): plugins.smartpromise.Deferred<
|
|
81
|
+
defer(): plugins.smartpromise.Deferred<void>;
|
|
82
82
|
cumulativeDefer(): plugins.smartpromise.CumulativeDeferred;
|
|
83
83
|
smartjson: typeof plugins.smartjson;
|
|
84
84
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@git.zone/tstest",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.",
|
|
6
6
|
"exports": {
|
|
@@ -26,30 +26,30 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@git.zone/tsbuild": "^4.4.0",
|
|
29
|
-
"@types/node": "^25.
|
|
29
|
+
"@types/node": "^25.6.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@git.zone/tsbundle": "^2.10.
|
|
33
|
-
"@git.zone/tsrun": "^2.0.
|
|
34
|
-
"@push.rocks/consolecolor": "^2.0.
|
|
35
|
-
"@push.rocks/qenv": "^6.1.
|
|
32
|
+
"@git.zone/tsbundle": "^2.10.1",
|
|
33
|
+
"@git.zone/tsrun": "^2.0.3",
|
|
34
|
+
"@push.rocks/consolecolor": "^2.0.4",
|
|
35
|
+
"@push.rocks/qenv": "^6.1.4",
|
|
36
36
|
"@push.rocks/smartbrowser": "^2.0.11",
|
|
37
37
|
"@push.rocks/smartcrypto": "^2.0.4",
|
|
38
|
-
"@push.rocks/smartdelay": "^3.0
|
|
39
|
-
"@push.rocks/smartenv": "^6.
|
|
38
|
+
"@push.rocks/smartdelay": "^3.1.0",
|
|
39
|
+
"@push.rocks/smartenv": "^6.1.0",
|
|
40
40
|
"@push.rocks/smartexpect": "^2.5.0",
|
|
41
|
-
"@push.rocks/smartfile": "^13.1.
|
|
42
|
-
"@push.rocks/smartfs": "^1.5.
|
|
43
|
-
"@push.rocks/smartjson": "^6.0.
|
|
44
|
-
"@push.rocks/smartlog": "^3.2.
|
|
45
|
-
"@push.rocks/smartmongo": "^
|
|
46
|
-
"@push.rocks/smartnetwork": "^4.
|
|
41
|
+
"@push.rocks/smartfile": "^13.1.3",
|
|
42
|
+
"@push.rocks/smartfs": "^1.5.1",
|
|
43
|
+
"@push.rocks/smartjson": "^6.0.1",
|
|
44
|
+
"@push.rocks/smartlog": "^3.2.2",
|
|
45
|
+
"@push.rocks/smartmongo": "^7.0.0",
|
|
46
|
+
"@push.rocks/smartnetwork": "^4.7.1",
|
|
47
47
|
"@push.rocks/smartpath": "^6.0.0",
|
|
48
|
-
"@push.rocks/smartpromise": "^4.2.
|
|
49
|
-
"@push.rocks/smartrequest": "^5.0.
|
|
50
|
-
"@push.rocks/smartserve": "^2.0.
|
|
48
|
+
"@push.rocks/smartpromise": "^4.2.4",
|
|
49
|
+
"@push.rocks/smartrequest": "^5.0.3",
|
|
50
|
+
"@push.rocks/smartserve": "^2.0.4",
|
|
51
51
|
"@push.rocks/smartshell": "^3.3.8",
|
|
52
|
-
"@push.rocks/smartstorage": "^6.
|
|
52
|
+
"@push.rocks/smartstorage": "^6.5.1",
|
|
53
53
|
"@push.rocks/smarttime": "^4.2.3",
|
|
54
54
|
"@push.rocks/smartwatch": "^6.4.0",
|
|
55
55
|
"@types/ws": "^8.18.1",
|
package/readme.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
๐งช **A powerful, modern test runner for TypeScript** โ beautiful output, multi-runtime support, and a batteries-included test framework that makes testing actually enjoyable.
|
|
4
4
|
|
|
5
|
+
## Issue Reporting and Security
|
|
6
|
+
|
|
7
|
+
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
8
|
+
|
|
5
9
|
## Availability and Links
|
|
6
10
|
|
|
7
11
|
- [npmjs.org (npm package)](https://www.npmjs.com/package/@git.zone/tstest)
|
|
8
12
|
- [code.foss.global (source)](https://code.foss.global/git.zone/tstest)
|
|
9
13
|
|
|
10
|
-
## Issue Reporting and Security
|
|
11
|
-
|
|
12
|
-
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
13
|
-
|
|
14
14
|
## Why tstest?
|
|
15
15
|
|
|
16
16
|
Most TypeScript test runners feel like an afterthought โ clunky configuration, ugly output, and poor TypeScript support. **tstest** was built from the ground up for TypeScript developers who want:
|
|
@@ -126,7 +126,7 @@ Name your test files with runtime specifiers to control where they run:
|
|
|
126
126
|
|
|
127
127
|
### Runtime Execution Order
|
|
128
128
|
|
|
129
|
-
When multiple runtimes are specified, tests execute in this order: **Node.js โ
|
|
129
|
+
When multiple runtimes are specified, tests execute in this order: **Node.js โ Chromium โ Deno โ Bun**
|
|
130
130
|
|
|
131
131
|
### Migration from Legacy Naming
|
|
132
132
|
|
|
@@ -147,6 +147,7 @@ tstest migrate --write
|
|
|
147
147
|
|
|
148
148
|
| Option | Description |
|
|
149
149
|
|---|---|
|
|
150
|
+
| `--version` | Show the installed tstest version |
|
|
150
151
|
| `--quiet`, `-q` | Minimal output โ perfect for CI |
|
|
151
152
|
| `--verbose`, `-v` | Show all console output from tests |
|
|
152
153
|
| `--no-color` | Disable colored output |
|
|
@@ -158,7 +159,6 @@ tstest migrate --write
|
|
|
158
159
|
| `--stopAt <n>` | Stop at test file number N |
|
|
159
160
|
| `--watch`, `-w` | Re-run tests on file changes |
|
|
160
161
|
| `--watch-ignore <patterns>` | Ignore patterns in watch mode |
|
|
161
|
-
| `--only` | Run only tests marked with `.only` |
|
|
162
162
|
|
|
163
163
|
## Writing Tests with tapbundle
|
|
164
164
|
|
|
@@ -287,7 +287,9 @@ tap.test('snapshot test', async (tools) => {
|
|
|
287
287
|
### Test Fixtures
|
|
288
288
|
|
|
289
289
|
```typescript
|
|
290
|
-
tap
|
|
290
|
+
import { tap, expect, TapTools } from '@git.zone/tstest/tapbundle';
|
|
291
|
+
|
|
292
|
+
TapTools.defineFixture('testUser', async (data) => ({
|
|
291
293
|
id: Date.now(),
|
|
292
294
|
name: data?.name || 'Test User',
|
|
293
295
|
email: data?.email || 'test@example.com',
|
|
@@ -368,8 +370,10 @@ expect(7).customAssertion(v => v % 2 === 1, 'Value is not odd');
|
|
|
368
370
|
For Node.js-only tests, import server-side utilities:
|
|
369
371
|
|
|
370
372
|
```typescript
|
|
371
|
-
import { tapNodeTools } from '@git.zone/tstest/tapbundle_serverside';
|
|
372
373
|
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
|
374
|
+
import { TapNodeTools } from '@git.zone/tstest/tapbundle_serverside';
|
|
375
|
+
|
|
376
|
+
const tapNodeTools = new TapNodeTools(tap);
|
|
373
377
|
```
|
|
374
378
|
|
|
375
379
|
### ๐ Network Utilities
|
|
@@ -437,7 +441,7 @@ await mongo.stop();
|
|
|
437
441
|
### ๐ฆ Local S3 Storage
|
|
438
442
|
|
|
439
443
|
```typescript
|
|
440
|
-
const s3 = await tapNodeTools.
|
|
444
|
+
const s3 = await tapNodeTools.createSmartStorage();
|
|
441
445
|
// ... run object storage tests ...
|
|
442
446
|
await s3.stop();
|
|
443
447
|
```
|
|
@@ -448,7 +452,7 @@ Control runtime behavior directly from your test files using special comment dir
|
|
|
448
452
|
|
|
449
453
|
### Deno Permissions
|
|
450
454
|
|
|
451
|
-
By default, Deno tests run with `--allow-read`, `--allow-env`, `--allow-net`, `--allow-write`, `--allow-sys`, and `--
|
|
455
|
+
By default, Deno tests run with `--allow-read`, `--allow-env`, `--allow-net`, `--allow-write`, `--allow-sys`, `--allow-import`, `--node-modules-dir`, and `--sloppy-imports`. Add directives to request additional permissions:
|
|
452
456
|
|
|
453
457
|
```typescript
|
|
454
458
|
// tstest:deno:allowAll
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/readme.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> ๐ Multi-runtime TypeScript test runner with beautiful output and intelligent test orchestration
|
|
4
4
|
|
|
5
|
+
## Issue Reporting and Security
|
|
6
|
+
|
|
7
|
+
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
8
|
+
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
```bash
|
|
@@ -9,10 +13,6 @@
|
|
|
9
13
|
pnpm install --save-dev @git.zone/tstest
|
|
10
14
|
```
|
|
11
15
|
|
|
12
|
-
## Issue Reporting and Security
|
|
13
|
-
|
|
14
|
-
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
15
|
-
|
|
16
16
|
## Overview
|
|
17
17
|
|
|
18
18
|
This is the core test runner module of `@git.zone/tstest`. It provides the CLI, test discovery, multi-runtime execution, TAP output parsing, structured logging, and test orchestration. It ties together the entire testing pipeline โ from finding test files to dispatching them across Node.js, Chromium, Deno, Bun, and Docker runtimes.
|