@fedify/testing 2.0.0-dev.1604 → 2.0.0-dev.161
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/LICENSE +1 -1
- package/README.md +9 -7
- package/dist/mod.cjs +733 -0
- package/dist/mod.d.cts +126 -0
- package/dist/mod.d.ts +83 -254
- package/dist/mod.js +111 -41
- package/package.json +10 -8
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ interface for unit testing:
|
|
|
40
40
|
|
|
41
41
|
~~~~ typescript
|
|
42
42
|
import { MockFederation } from "@fedify/testing";
|
|
43
|
-
import { Create } from "@fedify/
|
|
43
|
+
import { Create } from "@fedify/vocab";
|
|
44
44
|
|
|
45
45
|
// Create a mock federation
|
|
46
46
|
const federation = new MockFederation<{ userId: string }>();
|
|
@@ -95,10 +95,12 @@ The package also exports helper functions for creating various context types:
|
|
|
95
95
|
- `createRequestContext()`: Creates a request context
|
|
96
96
|
- `createInboxContext()`: Creates an inbox context
|
|
97
97
|
|
|
98
|
-
## Features
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
99
|
+
Features
|
|
100
|
+
--------
|
|
101
|
+
|
|
102
|
+
- Track sent activities with metadata
|
|
103
|
+
- Simulate activity reception
|
|
104
|
+
- Configure custom URI templates
|
|
105
|
+
- Test queue-based activity processing
|
|
106
|
+
- Mock document loaders and context loaders
|