@fedify/testing 1.8.1-pr.283.1138

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/mod.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Testing utilities for Fedify applications.
3
+ *
4
+ * This module provides mock implementations of the {@link Federation} and
5
+ * {@link Context} interfaces to facilitate unit testing of federated applications
6
+ * built with Fedify.
7
+ *
8
+ * @module
9
+ */
10
+
11
+ export { MockContext, MockFederation } from "./mock.ts";
12
+ export type { SentActivity } from "./mock.ts";
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@fedify/testing",
3
+ "version": "1.8.1-pr.283.1138+8009e193",
4
+ "description": "Testing utilities for Fedify applications",
5
+ "keywords": [
6
+ "fedify",
7
+ "testing",
8
+ "mock",
9
+ "federation",
10
+ "activitypub"
11
+ ],
12
+ "license": "MIT",
13
+ "author": {
14
+ "name": "Hong Minhee",
15
+ "email": "hong@minhee.org",
16
+ "url": "https://hongminhee.org/"
17
+ },
18
+ "homepage": "https://fedify.dev/",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/fedify-dev/fedify.git",
22
+ "directory": "testing"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/fedify-dev/fedify/issues"
26
+ },
27
+ "funding": [
28
+ "https://opencollective.com/fedify",
29
+ "https://github.com/sponsors/dahlia"
30
+ ],
31
+ "type": "module",
32
+ "main": "./dist/mod.js",
33
+ "module": "./dist/mod.js",
34
+ "types": "./dist/mod.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/mod.d.ts",
38
+ "import": "./dist/mod.js",
39
+ "default": "./dist/mod.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "peerDependencies": {
44
+ "@fedify/fedify": "1.8.1-pr.283.1138+8009e193"
45
+ },
46
+ "devDependencies": {
47
+ "@js-temporal/polyfill": "^0.5.1",
48
+ "@std/assert": "npm:@jsr/std__assert@^1.0.13",
49
+ "@std/async": "npm:@jsr/std__async@^1.0.13",
50
+ "tsdown": "^0.12.9",
51
+ "typescript": "^5.8.3"
52
+ },
53
+ "dependencies": {
54
+ "@opentelemetry/api": "^1.9.0"
55
+ },
56
+ "scripts": {
57
+ "build": "tsdown",
58
+ "prepublish": "tsdown",
59
+ "test": "tsdown && node --experimental-transform-types --test",
60
+ "test:bun": "tsdown && bun test --timeout 15000",
61
+ "test:deno": "deno task test",
62
+ "test-all": "tsdown && node --experimental-transform-types --test && bun test --timeout 15000 && deno task test"
63
+ }
64
+ }
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from "tsdown";
2
+
3
+ export default defineConfig({
4
+ entry: "mod.ts",
5
+ dts: true,
6
+ platform: "node",
7
+ external: [
8
+ "@fedify/fedify",
9
+ "@fedify/fedify/federation",
10
+ "@fedify/fedify/nodeinfo",
11
+ "@fedify/fedify/runtime",
12
+ "@fedify/fedify/vocab",
13
+ "@fedify/fedify/webfinger",
14
+ "@opentelemetry/api",
15
+ ],
16
+ });