@siglo/testing 1.0.3 → 1.1.0
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 +8 -1
- package/package.json +15 -4
package/README.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @siglo/testing — Testing and Replay
|
|
2
2
|
|
|
3
3
|
`@siglo/testing` provides a comprehensive, zero-flake test harness for deterministic execution, step mocking, spy inspection, virtual timers, execution trace snapshots, and production failure replay.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @siglo/core
|
|
11
|
+
npm install --save-dev @siglo/testing
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## 1. The Workflow Harness
|
|
8
15
|
|
|
9
16
|
Create a test harness wrapping any workflow:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siglo/testing",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "Deterministic
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Deterministic testing utilities for Siglo TypeScript workflows with mocks, fake timers, execution traces, and failure replay.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/jsoftgem/siglo/issues"
|
|
39
39
|
},
|
|
40
|
-
"homepage": "https://github.com/jsoftgem/siglo#readme",
|
|
40
|
+
"homepage": "https://github.com/jsoftgem/siglo/tree/main/packages/testing#readme",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@siglo/core": "^1.0.0"
|
|
43
43
|
},
|
|
@@ -49,5 +49,16 @@
|
|
|
49
49
|
"mocha": "^12.0.3",
|
|
50
50
|
"tsx": "^4.23.15",
|
|
51
51
|
"typescript": "~5.7.0"
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"siglo",
|
|
55
|
+
"workflow",
|
|
56
|
+
"typescript",
|
|
57
|
+
"testing",
|
|
58
|
+
"test-harness",
|
|
59
|
+
"mock",
|
|
60
|
+
"fake-timers",
|
|
61
|
+
"replay",
|
|
62
|
+
"deterministic"
|
|
63
|
+
]
|
|
53
64
|
}
|